Skip to content

Instantly share code, notes, and snippets.

@tim-fan
tim-fan / country_entry_history.py
Last active August 5, 2024 20:06
Determine country entry/exit history using google location history
"""
For a visa application, I need to provide a list of all countries I've visited in the past 10
years, along with the associated entry/exit dates.
This is a pain as I've visited 37 countries in that timeframe.
This script parses Google location history to provide a list of countries visited along with entry/exit dates.
Usage:
1) Download and unzip timeline history from https://takeout.google.com/