chentinghao / download_google_drive Goto Github PK
View Code? Open in Web Editor NEWDownload files from Google Drive using Python 2 or Python 3
Download files from Google Drive using Python 2 or Python 3
What's the GoogleFileID for this link https://drive.google.com/file/d/1vTOYx8_rSNwjQ3Tt95b795GFATFaf6Wx/view?usp=sharing
?
Hi, thanks for the script!
is it possible to download an entire folder? I need to download a folder with ~15 files, that range from fairly small to fairly large (~200G). Would be great if I could give the ID for the folder, but I get Error 404.
I was using the python script to download a dataset from Google Drive and I think I've done everything correctly but the downloaded file is always 32KB only. Any clues?
The dataset is ATD-12K
gives the error:
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
root@Z390-AORUS-PRO:/home/ziomario/Scrivania/Virt/cont/docker/download_google_drive# python download_gdrive.py 1fJrRRSc8VxW3g7rnh-70fovtUWn0SIm vm
Traceback (most recent call last):
File "download_gdrive.py", line 12, in
import requests
ImportError: No module named requests
root@Z390-AORUS-PRO:/home/ziomario/Scrivania/Virt/cont/docker/download_google_drive# python
Python 2.7.18 (default, Mar 9 2021, 11:09:26)
[GCC 10.2.1 20210306] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[1]+ Stopped python
root@Z390-AORUS-PRO:/home/ziomario/Scrivania/Virt/cont/docker/download_google_drive# python3
Python 3.9.4 (default, Apr 4 2021, 19:38:44)
[GCC 10.2.1 20210401] on linux
Type "help", "copyright", "credits" or "license" for more information.
KeyboardInterrupt
[2]+ Stopped python3
root@Z390-AORUS-PRO:/home/ziomario/Scrivania/Virt/cont/docker/download_google_drive# python3 download_gdrive.py 1fJrRRSc8VxW3g7rnh-70fovtUWn0SIm vm
#download_gdrive.py:50: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if len(sys.argv) is not 3:
Traceback (most recent call last):
File "/home/ziomario/Scrivania/Virt/cont/docker/download_google_drive/download_gdrive.py", line 14, in
from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'
the file is big, so I got the "Google Drive - Virus scan warning" instead of the real file
Hi, thanks for the script.
I download a file successfully,but I ctrl-c to stop it. Then I try to download again fail. why the same command just download 32KB in the second time and finish? and then i try to download other files,which also download 32KB and finish incorrectly.
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.