Google Drive Public File Downloader when Curl/Wget Fails
python -m gdown <URL>
by renaming cli.py
to __main__.py
#306md5
with hash
in gdown.cached_download
to support various hash algorithm #311gdown.download()
customizable #312skip_download
option to gdown.download_folder
to return the list of files without download #317 (Thanks @o-laurent)ci.yml
to test___main__.py
#307assert_md5sum
function #298NOTE: Gdown was down due to the Google Drive's change on User-Agent. Now it should be back to normal.
If you find this project useful, please consider sponsoring its development.
% gdown https://docs.google.com/document/d/1TFYNzuZJTgNGzGmjraZ58ZVOh9_YoKeBnU-opWgXQL4/edit#heading=h.9rak0iw3abvl --fuzzy --format pdf
Downloading...
From (uriginal): https://drive.google.com/uc?id=1TFYNzuZJTgNGzGmjraZ58ZVOh9_YoKeBnU-opWgXQL4
From (redirected): https://docs.google.com/document/d/1TFYNzuZJTgNGzGmjraZ58ZVOh9_YoKeBnU-opWgXQL4/export?format=pdf
To: /Users/wkentaro/Documents/gdown/gdown.docx.pdf
26.0kB [00:00, 40.7MB/s]
% gdown https://docs.google.com/spreadsheets/d/1h6wQX7ATSJDOSWFEjHPmv_nukJzZD_zZ30Jvy6XNiTE/edit#gid=0 --fuzzy --format pdf
Downloading...
From (uriginal): https://drive.google.com/uc?id=1h6wQX7ATSJDOSWFEjHPmv_nukJzZD_zZ30Jvy6XNiTE
From (redirected): https://docs.google.com/spreadsheets/d/1h6wQX7ATSJDOSWFEjHPmv_nukJzZD_zZ30Jvy6XNiTE/export?format=pdf
To: /Users/wkentaro/Documents/gdown/gdown.xlsx.pdf
17.8kB [00:00, 24.2MB/s]
% gdown https://docs.google.com/presentation/d/13AhW1Z1GYGaiTpJ0Pr2TTXoQivb6jx-a/edit#slide=id.p1 --fuzzy --format pdf
Downloading...
From (uriginal): https://drive.google.com/uc?id=13AhW1Z1GYGaiTpJ0Pr2TTXoQivb6jx-a
From (redirected): https://docs.google.com/presentation/d/13AhW1Z1GYGaiTpJ0Pr2TTXoQivb6jx-a/export?format=pdf
To: /Users/wkentaro/Documents/gdown/gdown.pptx.pdf
12.3kB [00:00, 19.2MB/s]
If you find this project useful, please consider sponsoring its development.