Name: Anonymous 2009-01-16 11:15
make me aprogram thingy that downloads allthe pictueres from /b/ thread
wget -np -r -A.gif -A.jpg -A.png http://img.4chan.org/b/blahblahwhatever
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'HELLO WORLD'
#!/usr/bin/perl
$url = (shift) or die "Gimme a URL!\n";
`wget $url`;
$url =~ m#^([\w:./]+?/)(res/)?([^/]+)$#;
$path = $1; $file = $3;
open(FILE, $file) or die "Where's the file?\n";
while(<FILE>) { `wget -c "${path}src/$1"` if(/(\d{13}.(jpg|png|gif))/) }
close(FILE);
unlink($file);