
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
This is a Python script that can download a complete history of georeferenced flickr photo metadata. It uses the official flickr API, and saves the data into a PostgreSQL/PostGIS database.
The script will download all photos until its starting time, and keep track of already downloaded time periods in a cache file (default location ~/.cache/flickrhistory.yml
). Upon restart it will catch up until the new starting time.
Flickrhistory makes use of multiple threads and can use multiple API keys (something that most likely disagrees with flickr’s T&C, use feature at your own risk).
If you use flickrhistory for scientific research, please cite it in your publication:
Fink, C. (2020): flickrhistory: a Python tool to download a complete flickr timeline. doi:10.5281/zenodo.6566196.
The script is written in Python 3 and depends on the Python modules blessed, GeoAlchemy2, psycopg2, PyYaml, Requests and SQLAlchemy.
pip install flickrhistory
Copy the example configuration file flickrhistory.yml.example to a suitable location, depending on your operating system:
/etc/flickrhistory.yml
~/.config/flickrhistory.yml
OR${XDG_CONFIG_HOME}/flickrhistory.yml
${XDG_CONFIG_HOME}/flickrhistory.yml
%APPDATA%\flickrhistory.yml
Adapt the configuration:
connection_string
), pointing to an existing database (with the PostGIS extension enabled).flickr_api_keys
). Using more than one API key in all likelihood violates the Terms and Conditions of the Flickr API (don’t do it!).If you have a cache file from a previous installation in which already downloaded time periods are saved, copy it to ${XDG_CACHE_HOME}/flickrhistory.yml
or %LOCALAPPDATA%/flickrhistory.yml
on Linux or MacOS, and Microsoft Windows, respectively.
python -m flickrhistory
Import the flickrhistory
module. Instantiate a FlickrHistoryDownloader
, and call its download()
method.
import flickrhistory
downloader = flickrhistory.FlickrHistoryDownloader()
downloader.download()
FAQs
Download a complete history of georeferenced flickr posts
We found that flickrhistory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.