-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Description
I spent a while trying to figure out how to get the files from Google Drive since gdown and youtube-dl didn't work. This turned out to be the simplest way I could find and thought it might help someone else.
- Purchase additional gdrive storage (1tb = ~£7) and then copy the files to your drive. Change the link share permissions to read.
- Go to OAuth 2.0 Playground https://developers.google.com/oauthplayground/
- In the Select the Scope box, paste https://www.googleapis.com/auth/drive.readonly
- Click Authorize APIs and then Exchange authorization code for tokens
- Copy the Access token to replace ACCESS_TOKEN below.
- Back in your google drive click the file to download locally and then cancel the download - go to your downloads in the browser and copy the ID part of the url for FILE_ID below.
- Finally run in terminal
curl -H "Authorization: Bearer ACCESS_TOKEN" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME - Delete files from local gdrive and submit refund request.
poffertje and Hraith
Metadata
Metadata
Assignees
Labels
No labels