Skip to content

ytya/FlickrRandomPicker

Repository files navigation

Flickr Random Picker

Pick random photos from Flickr and download them.

Requirement

pyproject.toml

Environments under poetry.

poetry install

Usage

  1. Get Flickr API key
    https://www.flickr.com/services/api/

  2. Create config.py
    Copy config_sample.py to config.py and edit api_key.

  3. Pick random photos

poetry run python flickr_random_picker.py random_pick --get_num=50 --output_csv="photos.csv"
  1. Download images
poetry run python flickr_random_picker.py download --input_csv="photos.csv" --output_dir="output"

Output sample

photos10000.csv is a list of 10000 photos picked up randomly.
These are royalty-free licensed (mostly CC0) photos of over 2000 x 2000px.

Note

The current algorithm is not able to select all photos equally.
The photos uploaded on the datetime when there are fewer photos are more likely to be selected than the photos uploaded on the datetime when there are more photos.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages