Skip to main content

Flickr Export Organizer

Β· 4 min read
Ilian Sapundshiev

According to a recent announcement from Flickr, the users with the free account may lose some of their photos if they don't update to a paid plan. Luckily Flickr is providing a way to export all of your photos and videos together with some meta data including useful things such as tags and albums. So we decided to write a small script, with the purpose of sorting the files in folders and extracting that meta data in a format, which can be later recognized by TagSpaces. The script iterates through all the media files in the export folder and copies the found files in sub folders. If file is part of album, a folder with the album's name is create and the file is copied there. If this is not the case the script create a folder, which name corresponds to the date when the image was taken, and copies it there. In addition to that it parses the provided JSON file and extract the tags, the description and the comments if available. This information is saved in readable for TagSpaces JSON files, in the .ts sub folder of the folder where the image was copied previously.

Exporting your Flickr data#

  • Your Flickr Data - You have to request and download your Flickr data, as shown in following screenshot.
    • Login to Flickr via the web
    • Click on the profile avatar and then select Settings
    • Go to "Your Flickr Data" area and request your files by clicking the "Request my Flickr data".
    • After a while the data is prepared and you have to download all the zip-files locally.

How to export Flickr data

Installing and running the script#

  • You will need a running Node.js environment, which can be easily achieved on Windows, macOS or Linux by just installing it from here.
  • Create a folder where the script will run.
  • Download the last version of the script directly from here or from the release section of this project and place the script export-organizer.js in the previously create folder.
  • Extract all files from all the zip exports in a sub folder called flickerData.
  • Under Windows you can right click on export-organizer.js and choose Open With... (path_to_nodejs\node.exe)
  • Alternatively you can run the script in the Windows, Linux or macOS terminal in the working folder like this:
node export-organizer.js

After a successful run of the script a new folder flickrExport will be created containing your photos distributed in sub-folders.

Resulting structure#

The folder structure before running the script should look like this:

~ your working folderβ”œβ”€β”€ flickrDataβ”‚   β”œβ”€β”€ img_4376_2723423425_o.jpg - image part of Album1β”‚   β”œβ”€β”€ photo_2723423425_o.jsonβ”‚   β”œβ”€β”€ img_20180823_2723427625_o.jpg - image taken on 2018-08-23β”‚   β”œβ”€β”€ photo_2723427625_o.jsonβ”‚   β”œβ”€β”€ ...    - other media filesβ”‚   β”œβ”€β”€ albums.jsonβ”‚   └── ...    - other profile json files└── export-organizer.js

After running the script, you will have the following folder structure:

~ your working folderβ”œβ”€β”€ flickrDataβ”‚   β”œβ”€β”€ img_4376_2723423425_o.jpg - image part of Album1β”‚   β”œβ”€β”€ photo_2723423425_o.jsonβ”‚   β”œβ”€β”€ img_20180823_2723427625_o.jpg - image taken on 2018-08-23β”‚   β”œβ”€β”€ photo_2723427625_o.jsonβ”‚   β”œβ”€β”€ ...    - other media fileβ”‚   β”œβ”€β”€ albums.json - file containing your albumsβ”‚   └── ...    - other profile json filesβ”œβ”€β”€ flickrExport|   β”‚   β”œβ”€β”€ Album1|   β”‚   |   β”œβ”€β”€ .ts|   β”‚   |   |   β”œβ”€β”€ img_4376.jpg.json|   β”‚   |   |   └── ... other TagSpaces meta data files|   β”‚   |   β”œβ”€β”€ img_4376.jpg|   β”‚   |   └── ... other media files|   β”‚   └── 20180823|   β”‚       β”œβ”€β”€ .ts|   β”‚       |   β”œβ”€β”€ img_20180823.jpg.json|   β”‚       |   └── ... other TagSpaces meta data files|   β”‚       β”œβ”€β”€ img_4376.jpg|   β”‚       └── ... other media filesβ”‚   └── ... - other profile json files└── export-organizer.js

Managing your files with TagSpaces#

After the files are organized, you can create a new location in TagSpaces pointing to the flickrExport folder and open it. Now you will be able to navigate your photos in TagSpaces by albums and see the tags, description and comment you have added to your media files.

TagSpaces showing exported files from Flickr with metadata

Your don't need of course TagSpaces for just browsing your photos by folders. This can be achieved perfectly with the Windows Explorer or macOS Finder, but if you have spend some time organizing your photos with tags, descriptions and comments and want to use this data somehow TagSpaces might be helpful.

P.S.: If you are a TagSpaces PRO user you can even put your photos back to the Internet on a S3 compatible object storage such as Amazon's AWS S3 and connect this storage with your local installation of the product, making your photos available from everywhere.