Skip to main content

Script that organizes the Google Photos Takeout archive into one big chronological folder

Project description

PyPI Donate

Google Photos Takeout Helper

What is this for?

If you ever want to move from Google Photos to other platform/solution, your fastest choice to export all photos is Google Takeout

But when you download it, you will find yourself with hundreds of little folders with few photos and weird .json files inside. What if you want to just have one folder with all photos, in chronological order? Good luck coping all of that :confused:

This script does just that - it organizes and cleans up your Takeout for you :+1:

It will take all of your photos from those tiny folders, set their exif and last modified, and other porperties correctly, and put it in one big folder (or folders divided by month)

How to use:

  1. Get all your photos in Google Takeout (select only Google Photos)
  2. pip3 install -U google-photos-takeout-helper
  3. Extract all contents from your Google Takeout to one folder
  4. Cut out/remove all "album folders" that aren't named "2016-06-16" or something like that
  5. Run google-photos-takeout-helper -i [INPUT TAKEOUT FOLDER] -o [OUTPUT FOLDER]

Alternatively, if you don't have PATH set right, you can call it python3 -m google_photos_takeout_helper

If you previously used this script in form where you download and run it - don't worry! Downloading it with pip is even simpler, and everything will work as previously :)

If, instead of one big folder, you want your photos to be divided by year and month, run it with --divide-to-dates flag.

How to use for dummies (non-programming people):

Click for detailed instructions

This script is written in Python. You need to install Python interpretert before you use it - don't worry, it's easy :wink: Then, everything with Python will be done through terminal/cmd

  1. Download and install Python for your system: https://www.python.org/downloads/ (Google step by step installation instructions if you have trouble) - if the installator will ask you about some PATH and pip, make sure to check that too

Now, you need to install my script with pip - a builtin tool that can install other Python programs and scripts. You can run it either by typing pip3 <options> or python3 -m pip <options>:

  1. pip3 install -U google-photos-takeout-helper / python3 -m pip install -U google-photos-takeout-helper

If something goes wrong and it prints some red errors, try to add --user flag at the end

  1. Prepare your Takeout:

If your Takeout was dividied into multiple .zips, you will need to extract them, and move their contents into one folder.

Because I don't have good solution on how to handle albums, you will need to cut off all "Album folders" - those who are not named like "2016-06-26" or "2016-06-26 #2" - don't worry, all photos from albums are in corresponding "date folders" already - they would just make a duplicate.

Now, you should be able to just run it straight in cmd/terminal:

  1. google-photos-takeout-helper -i [INPUT TAKEOUT FOLDER] -o [OUTPUT FOLDER] // Or if this doesn't work: python3 -m google_photos_takeout_helper -i [INPUT TAKEOUT FOLDER] -o [OUTPUT FOLDER]

If you want your photos to be divided by year and month, run it with --divide-to-dates flag.

If you have issues/questions, you can hit me up either by Reddit, Twitter Email: google-photos-takeout-gh@niceyyyboyyy.anonaddy.com, or if you think your issue is common: Issues tab

Why do you need to cut out albums?

They mostly contain duplicates of same photos that are in corresponding "date folder" This script tries to get all "photo taken time" stuff right. If it finds json - it sets everything from that json (it contains data of edited timestamp that you might've corrected in Google Photos). If it can't - it tries to get Exif data form photo. IF it can't find anything like that, it sets date from folder name.

All of this is so that you can then safely store ALL of your photos in one folder, and they will all be in right order.

Unless you move them around your Android phone.

Beware, that (99% of the times), if you move some files in Android, their creation and modification time is reseted to current.

"Simple Gallery" app usually keeps original file creation time when moving and coping (but I don't guarantee it). It's also pretty cool and you can check it out:

https://github.com/SimpleMobileTools/Simple-Gallery

What to do when you got rid of Google Photos? What are the alternatives?

  • I really recommend you using Syncthing for syncing your photos and files across devices. It does so through your local WiFi, so you're not dependend on any service or internet connection. It will also keep original file creation date and metadata, so it resolves Android issue that I mentioned before.

  • If you want something more centralized but also self-hosted, Nextcloud is a nice choice, but it's approach to photos is still not perfect. (And you need to set up your own server)

  • Guys at Photoprims are working on full Google Photos alternative, with search and AI tagging etc, but it's stil work in progress. (I will edit this when they are done, but can't promise :P )

Other Takeout projects

I used this tool to export my notes to markdown - you can then edit them with any markdown editor you like :)

https://github.com/vHanda/google-keep-exporter

This one saves them in format ready for Evernote/ClintaNotes:

https://github.com/HardFork/KeepToText

TODO (Pull Requests welcome):

  • Videos' Exif data
  • Gps data: from JSON to Exif
  • Some way to handle albums

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-photos-takeout-helper-1.0.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_photos_takeout_helper-1.0.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file google-photos-takeout-helper-1.0.1.tar.gz.

File metadata

  • Download URL: google-photos-takeout-helper-1.0.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for google-photos-takeout-helper-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c4b84ecb2b79720f80bd71408ce4b18ab23bf696af1234443b25fd359395e048
MD5 956bcd75b40a32210b1c9cdda446f798
BLAKE2b-256 ec8d9835a816e7740134d5c6ecc6a4e5db798e498c16506cc6f657a7d887e818

See more details on using hashes here.

File details

Details for the file google_photos_takeout_helper-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: google_photos_takeout_helper-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for google_photos_takeout_helper-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e072f1b33d2c0a33772ed4e39bd3ea13e884681fff6d6f892160f8970832024
MD5 a305865fa5e2fa5a90d973fd9a9e09c6
BLAKE2b-256 1d90a0d25066b9106940afeac002baf5e867581a895baf850a4baedc221cda3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page