Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

I'm B-A-A-A-C-K !!!

Porn Whitelist (838671) writes | more than 9 years ago

Announcements 4

Corrected Script - transposed an el and a one" (thanks to Nucleardog for pointing out I made a fuckup). Corrected script below :-)

Sorry for the hiatus (holidays, stupid dog that eats EVERYTHING, work, etc., but I'm back, and here we go with another simple script:

#!/usr/bin/perl

$site="www.met-art.com";
$dir= "g1";
$file="met-art_fl_00";
$ext=".jpg -w 4";

Corrected Script - transposed an el and a one" (thanks to Nucleardog for pointing out I made a fuckup). Corrected script below :-)

Sorry for the hiatus (holidays, stupid dog that eats EVERYTHING, work, etc., but I'm back, and here we go with another simple script:

#!/usr/bin/perl

$site="www.met-art.com";
$dir= "g1";
$file="met-art_fl_00";
$ext=".jpg -w 4";

for ($i=1; $i<=25; $i++) {
if ($i < 10) {
$cmd = "wget $site/$dir/$file" . "0" . $i . $ext;
} else {
$cmd = "wget $site/$dir/$file" . $i . $ext;
}
`$cmd`;
}

25 large pictures (many 2000 x 3000), suitable for "testing" that large-format colour laser down the hall (I wish :-)

prior next

Total to date : 3.866 gigs of porn.

cancel ×

4 comments

Hmm... (1)

NuclearDog (775495) | more than 9 years ago | (#11606546)

Long: I was just about to submit a quick cURL line to download 'em all, but then noticed that all I was getting (instead of images) was HTML files. I tried the address in a browser and also the script you provided (in case I had misinterpreted it when I got the URL for my browser/cURL), all report the same thing...

Short: 404'd.

ND

Re:Hmm... (1)

NuclearDog (775495) | more than 9 years ago | (#11623604)

curl "http://www.met-art.com/g1/met-art_fl_00[01-25].jp g" -o "met-art_fl_00#1.jpg"
cURL line to download 'em all. Have fun.

(Remember to remove the space Slashcode inserts into the URL.)

ND

Re:Hmm... (1)

sootman (158191) | more than 9 years ago | (#11752577)

to automatically make curl save files with the names the server owner gave them (i.e., to save whatever6.jpg as whatever6.jpg) just use -O (capital 'oh').
curl -O http://www.met-art.com/g1/met-art_fl_00[01-25].jpg

Transcription error (1)

Porn Whitelist (838671) | more than 9 years ago | (#11606921)

I copied the script from one computer to another over breakfast, and substituted a 1 in place of an "el". Damn!

Thanks for pointing out the error so quickly.

Enjoy.

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...