Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip for downloading from google drive on remote filesystem #100

Open
ed-fish opened this issue Jul 31, 2023 · 0 comments
Open

Tip for downloading from google drive on remote filesystem #100

ed-fish opened this issue Jul 31, 2023 · 0 comments

Comments

@ed-fish
Copy link

ed-fish commented Jul 31, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant