Download hidden data that applications store in your Google Drive account.
pip install -r requirements.txt
In order to use this script you should first obtain a master token that will be used for the authentication. To do so:
- Go to this Google sign in page
- Open inspect tool on your browser (on Google Chrome right click everywhere on the page an click Inspect on the menu that appears)
- Sign in and follow instructions on the web page
- In the inspect tool search for a section named Application (Storage on Firefox)
- Search for a section where page cookies are listed and copy the value of the
oauth_token
one, it is a string starting wihtoauth2_4/
. - 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 <oauth token>
- 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 <master token> \
--account-email <[email protected]> \
--app-name <app name> \
--app-signature <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.