Skip to content

Google Drive Downloader with aria2 integration.

License

Notifications You must be signed in to change notification settings

kalelbot/gdrivedl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gdrivedl

You can download Google Drive files and folders from the command line using the Google Drive Downloader with aria2 (gdrivedl).

gdrivedl demo

Features

  • Using token.pickle to access Google Drive APIs.
  • Download the Folder on Local as it was structured on Google Drive.
  • Resuming partially downloaded files
  • Skipping Existing files

Requirement

  • python
  • Then install these librarys
pip install google-auth-oauthlib google-auth google-auth-httplib2 google-api-python-client

Documentation

Create OAuth 2.0 Client IDs

Enable Google Drive API

Before using Google APIs, you need to turn them on in a Google Cloud project. You can turn on one or more APIs in a single Google Cloud project.

In the Google Cloud console, enable the Google Drive API.

Getting credentials for a desktop application

To authenticate as an end user and access user data in your app, you need to create one or more OAuth 2.0 Client IDs. A client ID is used to identify a single app to Google's OAuth servers. If your app runs on multiple platforms, you must create a separate client ID for each platform.

  1. In the Google Cloud console, go to Menu ≡ > APIs & Services > Credentials.
  2. Click Create Credentials > OAuth client ID.
  3. Click Application type > Desktop app.
  4. In the Name field, type a name for the credential. This name is only shown in the Google Cloud console.
  5. Click Create. The OAuth client created screen appears, showing your new Client ID and Client secret.
  6. Click OK. and Use the download button to download your credentials.

Detailed Guides

Configuration

Note

Using your own account OAuth 2.0 Client is always preferable. You can also use rclone OAuth 2.0 Client, but it frequently returns the "Rate Limit Exceeded" error.

  • Set up OAuth 2.0 credentials.json to Access Google Drive APIs
python gdrivedl.py --auth "/PATH/credentials.json"
  • To Download Folder/Files
python gdrivedl.py "Link"

Usage

❯ gdrivedl --help
usage: gdrivedl.py [-h] [--auth OAuth_client] [link]

Google Drive Downloader with aria2 integration.

positional arguments:
  link                 Google Drive Link

options:
  -h, --help           show this help message and exit
  --auth OAuth_client  Set up OAuth 2.0 credentials to Access Google Drive APIs

Credit

About

Google Drive Downloader with aria2 integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%