kuteteen / lofter_img_download

Download images from http://lofter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lofter_img_download

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.

image

645 seconds to download all images.

image.

It seems that the same result with php's file_put_contents, I'll test php's function later.

And the node way:

iamge

##Dependencies(choose one of them):

  • php (curl)

  • wget

  • node


You have 3 chooice to download the images.

  1. Modify the images' save path, execute node getimg.js.
  2. Modify the images' save path, execute php getimg.php.
  3. modify getimg.php, comment #Line9 and uncomment #line8, execute php getimg.php; ./wgetImg.sh. Modify the images' save path.

About

Download images from http://lofter.com


Languages

Language:PHP 48.2%Language:JavaScript 46.0%Language:Shell 5.8%