24 March 2012

My one line script to download wallpapers from wallbase.cc


#Find a collection that you like
#Get the url and replace the url below
#Run this on the folder where you want the pictures (one line)
wget --quiet $url -O - | egrep  -o  "http://wallbase.cc/wallpaper/[0-9]*"  | while read PAGE; do wget  $PAGE -O - | egrep -o "http://ns223506.ovh.net/.*(jpg|jpeg|png)" | wget -I - ; done;



Simple but effective.

Problem?
A collection may display in multiple pages. With this script you will get the pictures of only the first page, but it is still quite some pictures (30).
I noticed that even if you browse the page and then try to save it, it will still save only the page you are in.

0 Comments:

Post a Comment

<< Home

Too Cool for Internet Explorer