Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Download stock photos from flickr

Project Description

Do you need a whole bunch of stock photos for your latest project? Or maybe some images to flesh out a prototype? This command line tool fetches photos with a Creative Commons licence using the flickr API.

Installation

pip install flickrstock

Usage

You will need a flickr API key. It takes about 30 seconds to get one. Set it as the FLICKR_API_KEY environment variable or pass it on the command line.

usage: flickrstock [-h] [-s {sq,t,s,q,m,n,z,c,l,o}] [-n NUMBER] [-o OUTPUT]
                   [-k KEY]
                   term [term ...]

Download stock photos from flickr

positional arguments:
  term                  search terms

optional arguments:
  -h, --help            show this help message and exit
  -s {sq,t,s,q,m,n,z,c,l,o}, --size {sq,t,s,q,m,n,z,c,l,o}
                        photo size
  -n NUMBER, --number NUMBER
                        how many photos
  -o OUTPUT, --output OUTPUT
                        output directory
  -k KEY, --key KEY     flickr api key

Examples

Fetch some medium-sized pictures of pandas:

$ flickrstock --size m panda

Download 5 original-size photos of hotel rooms, saving the original urls in a separate file for attribution purposes:

$ flickrstock -n 5 --size o --output ./hotel-rooms hotel room > urls.txt

Licence

MIT.

Release History

This version
History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
flickrstock-0.2.2.tar.gz
(2.3 kB) Copy SHA256 Hash SHA256
Source None Mar 10, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting