An open API service indexing awesome lists of open source software.

https://github.com/albertored/google-drive-app-data

Python script to download hidden application data stored in your Google Drive
https://github.com/albertored/google-drive-app-data

android-app app google-drive google-drive-backup

Last synced: 2 months ago
JSON representation

Python script to download hidden application data stored in your Google Drive

Awesome Lists containing this project

README

        

Buy Me A Coffee

# Google Drive App Data Extractor

Download hidden data that applications store in your Google Drive account.

## Installation

```
pip install -r requirements.txt
```

## Usage

In order to use this script you should first obtain a master token that will be used for the authentication. To do so:

1. Go to this Google [sign in](https://accounts.google.com/embedded/setup/v2/android) page
2. Open inspect tool on your browser (on Google Chrome right click everywhere on the page an click *Inspect* on the menu that appears)
3. Sign in and follow instructions on the web page
4. In the inspect tool search for a section named *Application* (*Storage* on Firefox)
5. Search for a section where page cookies are listed and copy the value of the `oauth_token` one, it is a string starting wiht `oauth2_4/`.
6. run the python script `google_drive_appdata.py` to obtain the master token from the OAuth one:
```
python google_drive_appdata.py get-master-token --oauth-token
```
7. The scripts return the master token that should be used for downloading data, store it in a secure location.

After the master token has been obtained you can run the script to download data:
```
python google_drive_appdata.py download \
--master-token \
--account-email \
--app-name \
--app-signature
```

This will create a local folder where all the files belonging to the give app will be downloaded.
The script preserves the modification time of the files so a `ls -l` of the generated folder will show the Google Drive modification times of the downloaded files.