Download images from http://wanimal.lofter.com
##File Desc:
- getimg.php---Download by php(curl).
- getimg.js---Download by nodejs.
- wgetImg.sh---Download by wget.
I did this just for compare the speed of wget with php file_put_contents() after I read a article from my friend's blog.
This is the result: 16 seconds get all images' url and write in file.
645 seconds to download all images.
It seems that the same result with php's file_put_contents, I'll test php's function later.
And the node way:
##Dependencies(choose one of them):
-
php (curl)
-
wget
-
node
You have 3 chooice to download the images.