Thread: Useful Programs
View Single Post
Old January 20th, 2018, 06:43 PM   #278
CrystalSword
Junior Member
 
Join Date: Sep 2014
Posts: 7
Thanks: 46
Thanked 84 Times in 7 Posts
CrystalSword 100+CrystalSword 100+CrystalSword 100+CrystalSword 100+CrystalSword 100+
Default Convoluted workaround

Quote:
Originally Posted by Reynard View Post
Hi guys sorry to bother you can anyone recommend a mac equivalent of bulk image downloader,Ive tried loads of browser add ons to no avail
It's a little convoluted, but I use a Linux script in cygwin that parses domains like pixhost. I don't have a mass image downloader for pixhost that works, so I download all the image html pages with downthemall in firefox(but you could use any target downloader to do this), then parse the downloaded pages in linux(cygwin). Then wget -i the output file and voila. Sure beats downloading them one at a time(especially on sites that constantly redirect you).
Code:
#!/bin/sh

rm -rf temp1

for page in `ls -1 *.html` ; do
 echo $page
 grep pixhost $page | grep images | grep -v zoo >> temp1
done

sed "s|src: 'https|https|g" temp1 > temp2
sed "s|.jpg',|.jpg|g" temp2 > temp3

sort temp3 | uniq > temp4
CrystalSword is offline   Reply With Quote
The Following 8 Users Say Thank You to CrystalSword For This Useful Post: