Skip to content
Google Activity Log Capture Script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is a Python 3.X script that interacts with Google's Activity timeline to capture and extract the activity cards to a spreadsheet. Be aware that this script can break and will require updates with any changes to Google's Activity timeline HTML objects or URL.


This script takes up to five arguments: the username, password, the output file path for the resulting CSV, the number of times to scroll to the bottom of the page, and the number of seconds to wait between each scroll. Be aware that when supplying the password argument, you may need to wrap it in double quotes as some characters caused issues.

python -h
usage: [-h] -u USERNAME -p PASSWORD -c COUNT -o OUTPUT
                     [-s SECONDS]

Capture Google My Activity..

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Google account user:
  -p PASSWORD, --password PASSWORD
                        Google account password
  -c COUNT, --count COUNT
                        Number of times to scroll to the end of the page
  -o OUTPUT, --output OUTPUT
                        Output CSV
  -s SECONDS, --seconds SECONDS
                        Number of seconds to wait before pressing END (default
                        1 second)
You can’t perform that action at this time.