Extract your location timeline from Google.
Before you start, don't forget to install dependencies with npm install
- Go to https://www.google.com/maps/timeline?pb
- Make sure you're logged in and can see your timeline graph
- Open your browser developer tools and open the network monitoring
- Select a day from the graph to request some data.
- Inspect the network request, you'll be grabbing 3 pieces of data:
SID
in theCookie
headerHSID
in theCookie
headerSSID
in theCookie
header
- Create a
.env
file with those three values, under the variable namesSID
,HSID
andSSID
respectively - Time to get some data - use
npm start
to kick off the script; this will get the data for the previous day.- If you want more historical data, you can provide an initial date with
npm start -- <date>
- eg.
npm start -- 2018-01-01
- eg.
- If you want more historical data, you can provide an initial date with
- If it's all working, you'll get an
output
directory created with the raw responses and the viewing activity sliced by day.