An simple extension of gdown that adds redundancy checks
Project description
Noahs Google Drive Downloader
This module provides Python functions for downloading files and folders from public Google Drive URLs using the gdown library with the additional option of redundancy checks.
Installation
pip install noahs_google_drive_downloader
download_google_drive_folder(folder_url, output_dir, redundancy_check=True, quiet=False, use_cookies=False)
Downloads the contents of a public Google Drive folder to a specified local directory.
Parameters:
folder_url(str): Public URL to the Google Drive folder.output_dir(str): Local path to save the downloaded files.redundancy_check(bool): IfTrue, skips download if files already exist inoutput_dir.quiet(bool): IfTrue, suppresses print statements.use_cookies(bool): Use authentication cookies for private folders (optional).
Example:
from noahs_google_drive_downloader import download_google_drive_folder
download_google_drive_folder(
folder_url="https://drive.google.com/drive/folders/abc123",
output_dir="./my_folder"
)
download_google_drive_file(url, output_path, redundancy_check=True, quiet=False, use_cookies=False)
Downloads a single public Google Drive file to a specified local path.
Parameters:
url(str): Public file URL (e.g.https://drive.google.com/uc?id=...).output_path(str): Destination filepath.redundancy_check(bool): IfTrue, skips download if the file already exists atoutput_path.quiet(bool): IfTrue, suppresses print statements.use_cookies(bool): Use authentication cookies for private files (optional).
Example:
from noahs_google_drive_downloader import download_google_drive_file
download_google_drive_file(
url="https://drive.google.com/uc?id=abc123",
output_path="./my_folder/my_file.pdf"
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noahs_google_drive_downloader-0.1.0.tar.gz.
File metadata
- Download URL: noahs_google_drive_downloader-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d531b91676387161ef814622a2a2482ce829ca42260afa590ab311dc3554c330
|
|
| MD5 |
21a1211fe6af6d0723a6b1cc30be8326
|
|
| BLAKE2b-256 |
0c6c2946a3b9a4b02cd06d611b209ba938022d7d08e0247a6eb24de49f3d91c0
|
File details
Details for the file noahs_google_drive_downloader-0.1.0-py3-none-any.whl.
File metadata
- Download URL: noahs_google_drive_downloader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18f9756a07cd0421680fe6c56d75a6fad9945d79cc10b730abd1bf5d2020b01
|
|
| MD5 |
c93b2a1b28c6d6c3a4e6a695bba0970e
|
|
| BLAKE2b-256 |
c3d5bf3dceaa96ddcc2aebb3b9da3853d8d09de6ee3ef21c78987e31e2a96ca6
|