PyFlickr - An Unofficial Flickr API
PyFlickr provides python-developers to access to user, albums, photos and other public information from Flickr website. You can customize these to fit your requirements. This API also provide an easy way to download public photos and albums.
📕 Setup
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"
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.
Metadata
Release files for PyFlickr 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyFlickr-1.0.0.tar.gz | 10.3 kB | Without provenance | Details for PyFlickr-1.0.0.tar.gz |
Release files / PyFlickr-1.0.0.tar.gz
| Download URL | PyFlickr-1.0.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
598f35f0790ee7bc0fddea9e87f66deb91d2e46943963ff025bf45e27b66b8f4
|
|
BLAKE2b-256 checksum How to use checksums |
2e2bb00a199bb1ad742ecdeb9fe05677d5d571cf5a63d146add56e608bdae002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.0
|
Security for PyFlickr 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.