Skip to main content

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 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): If True, skips download if files already exist in output_dir.
  • quiet (bool): If True, 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): If True, skips download if the file already exists at output_path.
  • quiet (bool): If True, 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"
)

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

noahs_google_drive_downloader-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file noahs_google_drive_downloader-0.1.2.tar.gz.

File metadata

File hashes

Hashes for noahs_google_drive_downloader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bfccc521ad7a53b329886f0208dcc5402bd074c159f987174056c3836b514ebb
MD5 3b0af9305f7dbfbf2e902de8da85ca9c
BLAKE2b-256 dc3112acea77ef208fb9f2bc1399085908def13491134b25c7874a6dee840f05

See more details on using hashes here.

File details

Details for the file noahs_google_drive_downloader-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for noahs_google_drive_downloader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5203fe8954ebb76f853a8a52ae3712eaeb19c9c39a0f8d094a4e6bac526db0ac
MD5 bc1aa2d0eb8480a98ba849065f2e2ffc
BLAKE2b-256 a0afb88de0c86f8c491eb4b94a5d14ee921fdd98d85e0031b0b60ee7bb5508ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page