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 and the added feature of automatically cleaning urls to match gdown's expected url input format. Just use the normal link to the file or folder that you would use to open it in your web browser and it will download.
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?usp=drive_link",
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/file/d/abc123/view?usp=drive_link",
output_path="./my_folder/my_file.pdf"
)
Metadata
Release files for noahs-google-drive-downloader 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| noahs_google_drive_downloader-0.1.5.tar.gz | 3.1 kB | Without provenance | Details for noahs_google_drive_downloader-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| noahs_google_drive_downloader-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for noahs_google_drive_downloader-0.1.5-py3-none-any.whl |
Total release size: 6.8 kB
Release files / noahs_google_drive_downloader-0.1.5.tar.gz
| Download URL | noahs_google_drive_downloader-0.1.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49195391418949ae64678fcc3ab210e1c07e0f1af2e406a098cbd2c8409dbf82
|
|
BLAKE2b-256 checksum How to use checksums |
26ea9c26db11b0e71296fc5e30838c09933f5f5bf961a1136b8abfea0dd8742b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / noahs_google_drive_downloader-0.1.5-py3-none-any.whl
| Download URL | noahs_google_drive_downloader-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f945d95a5529ce0fddcedafdf4bdf676a10b616ccccc745eebb832b499d07e8
|
|
BLAKE2b-256 checksum How to use checksums |
5dd7ed617c0e0458c71ea14385f09d099fcfd2b1e0ba6d699ff9d3c8a9571587
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for noahs-google-drive-downloader 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.