Giter Club home page Giter Club logo

pyflickr's Introduction

PyFlickr - An Unofficial Flickr API

PyFlickr

PyPI - Python Version License: MIT PyPI version

PyFlickr provides python-developers to access to user, albums, photos and other public information from Flickr website in read-only mode. This API also provides some easy ways to download public photos and albums. You can customize these to fit your requirements.

To install PyFlickr, simply use pip:

$ pip install PyFlickr

Then, before using, you have to download Chromedriver to driver folder and unzip it.

$ mkdir driver
$ cd driver
$ curl -O https://chromedriver.storage.googleapis.com/{VERSION}/chromedriver_{OS}.zip
$ unzip chromedriver_{OS}.zip

Remember to update{VERSION}with the latest version and{OS}with your computer OS.

For example:

# version 2.41 on Mac
$ curl -O https://chromedriver.storage.googleapis.com/2.41/chromedriver_mac64.zip
# version 2.41 on Windows
$ curl -O https://chromedriver.storage.googleapis.com/2.41/chromedriver_win32.zip

๐Ÿ“— Getting Start

Start by importing module - PyFlickr:

from pyflickr import PyFlickr

๐Ÿ“˜ Documentation

PyFlickr provides 5 features : User Information, Photo Size Information, Photo Direct Url, Download Single Photo, Download Single Album.

โ—๏ธ For more details, please see PyFlickr Guide .

Example :

# This example shows : Download all of albums of one user in a new folder named "ResultFolder"
# '139958401@N06' is user's id, please see PyFlickr feature - "User Information" to get it.

from pyflickr import PyFlickr

user = PyFlickr.getUser('139958401@N06')
result = user.getAlbums(limit_trigger = False)
albums = result['Albums_Result']
for album_data in albums:
	album_url = album_data['url']
	PyFlickr.singleAlbum_DL(album_url = album_url, folder_path='ResultFolder')

๐Ÿ“™ Development

It's simple to run PyFlickr on your computer. Follow instruction below step-by-step:

$ git clone https://github.com/rf777rf777/PyFlickr.git
$ cd PyFlickr
$ pip install -r requirements.txt

Then, as mentioned previously, please setup your Chromedriver (see Setup).

๐Ÿ“ License

Licensed under MIT license.

pyflickr's People

Contributors

rf777rf777 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.