Pick random photos from Flickr and download them.
Environments under poetry.
poetry install
-
Get Flickr API key
https://www.flickr.com/services/api/ -
Create config.py
Copy config_sample.py to config.py and editapi_key
. -
Pick random photos
poetry run python flickr_random_picker.py random_pick --get_num=50 --output_csv="photos.csv"
- Download images
poetry run python flickr_random_picker.py download --input_csv="photos.csv" --output_dir="output"
photos10000.csv is a list of 10000 photos picked up randomly.
These are royalty-free licensed (mostly CC0) photos of over 2000 x 2000px.
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.