Export all your Flickr photos, or a selected set or collection, preserving title/description/tags an
2.0K
A command-line tool to download and archive your Flickr photos with metadata preservation.
brew install exiftoolsudo apt-get install libimage-exiftool-perlgo build -o flickr-exporter
Before using flickr-exporter, you need to authenticate with Flickr:
Get Flickr API credentials:
Authenticate flickr-exporter:
./flickr-exporter auth -k YOUR_API_KEY -s YOUR_API_SECRET
creds.yml)Downloads all photos from your account, organized by album:
./flickr-exporter -c creds.yml all -o /path/to/output/directory
Photos not in any album will be saved to an "Unorganized Photos" folder.
./flickr-exporter -c creds.yml album ALBUM_ID -o /path/to/output/directory
To find album IDs:
https://www.flickr.com/photos/yourusername/albums/7215769456387410072157694563874100)./flickr-exporter -c creds.yml collection COLLECTION_ID -o /path/to/output/directory
-c, --creds: Path to credentials file (recommended)-v, --verbose: Enable verbose output to see detailed progress-o, --output: Specify output directory (default: current directory)Photos are organized as follows:
output-directory/
├── 2023-01-15 Vacation Photos/
│ ├── IMG_001.jpg
│ ├── IMG_002.jpg
│ └── ...
├── 2023-02-20 Birthday Party/
│ └── ...
└── Unorganized Photos/
└── ...
Albums are prefixed with their creation date in YYYY-MM-DD format for chronological sorting.
The following metadata is written to each downloaded photo:
IPTC Fields:
ObjectName: Photo titleCaption-Abstract: Photo descriptionKeywords: Photo tagsXMP Fields:
Subject: Photo tags (duplicate of IPTC Keywords for compatibility)This metadata can be viewed in most photo management applications and is preserved when copying or backing up files.
# Authenticate (one-time setup)
./flickr-exporter auth -k abc123 -s xyz789
# Save credentials to a file after authentication
# Follow the prompts to save to creds.yml
# Download all photos to Pictures folder
./flickr-exporter -c creds.yml all -o ~/Pictures/Flickr-Backup
# Download a specific album with verbose output
./flickr-exporter -c creds.yml album 72157694563874100 -o ~/Pictures -v
# Download photos from a collection
./flickr-exporter -c creds.yml collection 12345-67890 -o ~/Pictures/Collections
Claude wrote this code with management by Chris Dzombak (dzombak.com / github.com/cdzombak).
GNU GPL v3; see LICENSE in this repo.
Content type
Image
Digest
sha256:19f8402e1…
Size
25.6 MB
Last updated
6 months ago
docker pull cdzombak/flickr-exporter