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.0.tar.gz (3.8 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gdownlite-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 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.0.tar.gz
Algorithm Hash digest
SHA256 13db14963b66d8837e3900ccdcc3390565d1491c01cf87ccbfd483414d0dbc25
MD5 f69021e089fb7915d2e182af980a984f
BLAKE2b-256 7ad01fe15a241565757b50cfd6bb55bf79c252c480146c48781b5fb3553322cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gdownlite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 516ea4dcbb4ccb016b53ee98ac6d3e1335cb9824257ee8078c3aa60d0f17a67d
MD5 e55a377ff49279dea552a7d355bffd47
BLAKE2b-256 124fadaaa9b358ab4000829a4301a083d4cdb9491e6e265583aba24fd10552ef

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