Skip to main content

Simple Google Drive downloader with original filename

Project description

gdownlite

A simple, lightweight Google Drive downloader that preserves original filenames.

Features

  • Download files from Google Drive shared links
  • Preserves original filename from Google Drive
  • Simple command-line interface
  • Can be used as a Python library
  • Handles large files with confirmation tokens
  • Lightweight with minimal dependencies

Installation

pip install gdownlite

Or install from source:

git clone https://github.com/ceejay06s/gdownlite.git
cd gdownlite
pip install .

Usage

Command Line

Download a file to the current directory:

gdownlite "https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing"

Download to a specific directory:

gdownlite "https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing" -o /path/to/download/folder

Quiet mode (suppress output):

gdownlite "https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing" -q

As a Python Library

from gdownlite import download_gdrive_file

# Download file
file_path = download_gdrive_file(
    "https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing",
    output_dir="./downloads",
    quiet=False
)
print(f"Downloaded to: {file_path}")

Supported URL Formats

The tool supports various Google Drive URL formats:

  • https://drive.google.com/file/d/FILE_ID/view?usp=sharing
  • https://drive.google.com/open?id=FILE_ID
  • Any URL containing a valid Google Drive file ID

Requirements

  • Python 3.6+
  • requests

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Christian
Email: christianbalais06@gmail.com
GitHub: @ceejay06s

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

gdownlite-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

gdownlite-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file gdownlite-0.1.1.tar.gz.

File metadata

  • Download URL: gdownlite-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for gdownlite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 147e725b22e1ea33fd442a44495efcf347aacf29d58e87d9f0dd00fc1045de7e
MD5 d63115e97d6866eff19c6ba6660001d2
BLAKE2b-256 d3d549bd5d9c84327ea879b9a8d2afe03ae6af381a9dffd7445120fe2339380a

See more details on using hashes here.

File details

Details for the file gdownlite-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gdownlite-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for gdownlite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d85401822ec49c225511b6b08ce3fbae070f6f0dde404926a08c180c14eefb50
MD5 bb6172bba8d7fc1a0da574145f98527e
BLAKE2b-256 5cb1c62b93b66e862199e1381f06bf8f7f474a78059bc2fdbca8a8b2aeafbb9f

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