Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 836 Bytes

README.rst

File metadata and controls

69 lines (47 loc) · 836 Bytes

grabflickr

Download photoset of flickr, support single process, multithread and gevent(Asynchronous I/O)

Installation

python setup.py install

or:

pip install grabflickr

gevent

Notice: Without libevent, grabflickr will fallback to normal multithread download

In Mac

brew install libevent

In Linux

apt-get install libevent-dev
apt-get install python-all-dev

Usage

# Enter your api key
gf -u

# Download photoset
gf -g <photoset id>

# For more usages, type:
gf -h

Method Benchmark(sec)

/usr/bin/time -p ./grabflickr.py -g xxxxxxxxx -O num -s 6

single multiprocess

  • 31.37

multithread

  • 9.91
  • 8.24
  • 7.49

gevent

  • 7.87
  • 7.94
  • 7.66