Skip to content

Download videos from Google Drive effortlessly, including view-only videos, with resumable downloads and progress bars.

License

Notifications You must be signed in to change notification settings

inspaacademy/gdrive-videoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDrive VideoLoader

GDrive VideoLoader is a Python-based tool to download videos from Google Drive effortlessly, including those marked as view-only (no download option). It supports resumable downloads, progress bars, and various customization options for video fetching and downloading.

Features

  • Download videos even if marked as view-only (without a download button)
  • Supports resumable downloads (continue from where it stopped)
  • Displays a progress bar for ongoing downloads
  • Allows custom chunk sizes for downloading
  • Optionally specify a custom output file name
  • Verbose mode for detailed logs during execution

Installation

Prerequisites

  • Python 3.7+
  • Pip (Python package manager)

Dependencies

Install the required Python packages using the following command:

pip install -r requirements.txt

Usage

Basic Command

To download a video by its Google Drive ID:

python gdrive_videoloader.py <video_id>

Options

Parameter Description Default Value
<video_id> The video ID from Google Drive (required). N/A
-o, --output Custom output file name for the downloaded video. Video name in GDrive
-c, --chunk_size Chunk size (in bytes) for downloading the video. 1024 bytes
-v, --verbose Enable verbose mode for detailed logs. Disabled
--version Display the script version. N/A
-h, --help Display the help message. N/A

TODO

Features

  • Add support for downloading subtitles.
  • Add support for multiple downloads (list or file of video IDs).
  • Allow selection of video quality.
  • Implement temporary file naming during download.

UX

  • Safely handle interruptions (KeyboardInterrupt).
  • Display custom error messages based on request responses.

Performance

  • Implement parallel downloads to speed up the process.

Organization

  • Modularize the project into separate files (downloader.py, cli.py, utils.py).
  • Add logging support using the logging module.
  • Validate output file names for compatibility with the operating system.

Code Quality

  • Create automated tests for core functions.
  • Add detailed documentation using pdoc or Sphinx.

Contributing

Contributions are always welcome! If you have suggestions for improving the script or adding new features, feel free to fork the repository and submit a pull request.

License

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

About

Download videos from Google Drive effortlessly, including view-only videos, with resumable downloads and progress bars.

Topics

Resources

License

Stars

Watchers

Forks

Languages