Skip to content

matthuisman/gdrivedl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GDriveDL

Google Drive Download Script

  • Python 2 / 3 compatible
  • No API keys / credentials required
  • Supports all operating systems
  • No external dependencies
  • Works with shared files or folders
  • Works with large files
  • Files / folders must have been shared via link

Usage

python gdrivedl.py <URL>
  • URL is a shared Google Drive URL

Multiple urls can be used by seperating them with a space. eg. python gdrivedl.py <URL1> <URL2> <URL3>
On some systems you may need to enclose the url within quotes. eg python gdrivedl.py "<URL>"
The script will exit with code 1 if there were any errors otherwise 0

Options

  • -P --directory-prefix Output directory (default is current directory)
  • -O --output-document Download to a particular filename (defaults to the GDrive filename). Only valid when downloading a single file.
  • -e --continue_on_errors If any errors processing files/folder then log and continue to next
  • -q --quiet Disable console output
  • -d --debug Show debug console output
  • -v --vebose Debug console output as well as HTML headers and content
  • -m --mtimes Try use modified times to check for changed files
  • -f --urlfile Text file containing Google Drive URLS to download (one per line)