This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -u -o pipefail | |
# Usage: Export a cookies.txt file from a browser logged-in in timeline.google.com with some | |
# add-on/extension (i.e. Export cookies, Get cookies.txt). Now run the script for the | |
# desired period: | |
# | |
# $ bash google-timeline-download.sh cookies.txt 2022-01-01 2022-02-20 out.kml | |
# | |
# Dependencies: curl, perl-xml-twig. |