Skip to content

Tip for downloading from google drive on remote filesystem #100

@ed-fish

Description

@ed-fish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions