Skip to content

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

License

Notifications You must be signed in to change notification settings

carlcarl/grabflickr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages