Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dogsheep/google-takeout-to-sqlite
Save data from Google Takeout to a SQLite database
https://github.com/dogsheep/google-takeout-to-sqlite
datasette datasette-io datasette-tool dogsheep google sqlite
Last synced: 28 days ago
JSON representation
Save data from Google Takeout to a SQLite database
- Host: GitHub
- URL: https://github.com/dogsheep/google-takeout-to-sqlite
- Owner: dogsheep
- License: apache-2.0
- Created: 2019-09-05T20:15:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T17:59:16.000Z (over 1 year ago)
- Last Synced: 2024-10-09T12:33:29.715Z (2 months ago)
- Topics: datasette, datasette-io, datasette-tool, dogsheep, google, sqlite
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 105
- Watchers: 6
- Forks: 8
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - dogsheep/google-takeout-to-sqlite - Save data from Google Takeout to a SQLite database (google)
- project-awesome - dogsheep/google-takeout-to-sqlite - Save data from Google Takeout to a SQLite database (Python)
README
# google-takeout-to-sqlite
[![PyPI](https://img.shields.io/pypi/v/google-takeout-to-sqlite.svg)](https://pypi.org/project/google-takeout-to-sqlite/)
[![CircleCI](https://circleci.com/gh/dogsheep/google-takeout-to-sqlite.svg?style=svg)](https://circleci.com/gh/dogsheep/google-takeout-to-sqlite)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/dogsheep/google-takeout-to-sqlite/blob/master/LICENSE)Save data from google-takeout to a SQLite database.
## How to install
$ pip install google-takeout-to-sqlite
Request your Google data from https://takeout.google.com/ - wait for the email and download the zip file.
This tool only supports a subset of the available options. More will be added over time.
## My Activity
You can request the "My Activity" export and then import it with the following command:
$ google-takeout-to-sqlite my-activity takeout.db ~/Downloads/takeout-20190530.zip
This will create a database file called `takeout.db` if one does not already exist.
## Location History
Your location history records latitude, longitude and timestame for where Google has tracked your location. You can import it using this command:
$ google-takeout-to-sqlite location-history takeout.db ~/Downloads/takeout-20190530.zip
## Browsing your data with Datasette
Once you have imported Google data into a SQLite database file you can browse your data using [Datasette](https://github.com/simonw/datasette). Install Datasette like so:
$ pip install datasette
Now browse your data by running this and then visiting `http://localhost:8001/`
$ datasette takeout.db
Install the [datasette-cluster-map](https://github.com/simonw/datasette-cluster-map) plugin to see your location history on a map:
$ pip install datasette-cluster-map