Status: Work in Progress (WIP)
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.
Ensure you have the following installed:
- Python 3.6 or higher
-
Clone the repository:
git clone https://github.com/ahm282/gdrive-downloader.git
-
Install the required packages:
pip install -r requirements.txt
-
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. -
Move the
credentials.json
file to the root of the project. -
Add the folder ID of the Google Drive folder you want to download from in the
.env
file:FOLDER_ID= "<folder_id>"
-
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.
-
Run the script:
python main.py