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
- Host: GitHub
- URL: https://github.com/albertored/google-drive-app-data
- Owner: albertored
- License: apache-2.0
- Created: 2025-01-22T14:10:19.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-22T14:31:32.000Z (4 months ago)
- Last Synced: 2025-01-22T15:31:02.889Z (4 months ago)
- Topics: android-app, app, google-drive, google-drive-backup
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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.