Hi guys I made 2 scripts that together work to download all the images of a thread and the main board message (as the original txt file it's hosted as). I could use some criticism on the functionality.
idk if I can upload the files directly but if that doesn't work I'll paste the contents. Also for the perl section you need WWW:Mechanize installed. This can easily be done as described here
http://cpansearch.perl.org/src/PETDANCE/WWW-Mechanize-Cached-1.32/INSTALL
To use these scripts just
'chmod +x AutoDownload.sh'
and then
'./AutoDownload.sh'
Code for the AutoDownload.sh
perl ThreadScript.perl
sed -i '$!N; /^\(.*\)\n\1$/!P; D' outputlinks.txt
sed -i '/.php/d' outputlinks.txt
sed -i '/.css/d' outputlinks.txt
sed -i '/.html/d' outputlinks.txt
sed -i '/.htm/d' outputlinks.txt
sed -i '/.co/d' outputlinks.txt
sed -i '/.php/d' outputlinks.txt
wget -i outputlinks.txt
& code for ThreadScript.perl
use WWW::Mechanize;
print "please copy the url of the thread\n";
$link = <>;
$mech = WWW::Mechanize->new();
$mech->get("$link");
open STDOUT, ">", "outputlinks.txt" or die "$0: open: $!";
open STDERR, ">&STDOUT" or die "$0: dup: $!";
$mech->dump_links(undef, 'absolut' => 1);