Skip to content

ahm282/gdrive-downloader

Repository files navigation

GDrive Downloader

Python Google Drive API GitHub license

Status: Work in Progress (WIP)

Overview

This project is a file downloader for Google Drive. The goal of this project is to automate (bulk) downloads from Google Drive and easily download files from Google Drive without a GUI. Google automatically zips files when downloading multiple files, which can be a hassle to wait for the files to get zipped, the download itself and unzipping the files afterwards. This project downloads files without zipping them. The project is built using Python and the Google Drive API.

Getting Started

Prerequisites

Ensure you have the following installed:

  • Python 3.6 or higher

Installation

  1. Clone the repository:

    git clone https://github.com/ahm282/gdrive-downloader.git
  2. Install the required packages:

    pip install -r requirements.txt
  3. Create a Google Cloud Platform project and enable the Google Drive API. Follow the instructions here to enable the API and download the credentials.json file.

  4. Move the credentials.json file to the root of the project.

  5. Add the folder ID of the Google Drive folder you want to download from in the .env file:

    FOLDER_ID= "<folder_id>"
  6. Add the path to the folder where you want to download the files to in the main.py file:

    dest_folder= "download path"

    the script will look for the Downloads folder in your home directory by default. The script is not yet able to handle localizations, sometimes you'll have to provide a different path.

  7. Run the script:

    python main.py

About

Google Drive File Downloader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages