architdate / drivedl Goto Github PK
View Code? Open in Web Editor NEWDownload files from Google Drive (inclusive of teamdrives, shared with me and my drive) concurrently.
License: MIT License
Download files from Google Drive (inclusive of teamdrives, shared with me and my drive) concurrently.
License: MIT License
If the program crashes part way through, based on the amount of network activity, it looks like it re-downloads the files a second time even though they are already on disk. It would be better if there was an option to say to not re-download files that have already been downloaded to disk (maybe I missed this?).
Thanks again for the great project.
Tried a lot of times. Everything's in place but still doesn't work, was this working earlier ?
Input: python drivedl folderid location
Output: No valid accounts with access to the file/folder. Exiting...
Drive API for Python is installed; Credentials are in place; All the dependencies are also installed.
I'm running drivedl from $HOME/.local/lib/python3.6/site-packages/drivedl
On running python drivedl.py
I get Usage: tdlist <folderid> <destination>
TRIED THIS ALREADY:
Recreating credentials.json
Reinstalling drivedl
EDIT: Formatting.
Getting this error while using drivedl. It was working a while back.
I think I accidentally removed it from my Google Dev Console.
EDIT: Added more info.
Thanks for the great utility, was one of the only repos that worked well for me for shared projects.
I ran into an issue if there is a file with a \
in its name, then the program will not handle this correctly.
I am not sure how to fix locally, so just waiting for the program to crash, and then renaming the file is what I have done.
The exact error is:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\shutil.py", line 566, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'buffer\\9beb37ca-c258-4cbb-9660-681d9397efd6' -> 'C:/testing/folder\\48\\Supplementary 48.mp4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\drivedl\drivedl.py", line 63, in download_helper
rlc = util.download(*args)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\drivedl\util.py", line 126, in download
shutil.move(os.path.join('buffer', rand_id), os.path.join(destination, file['name']))
File "c:\users\username\appdata\local\programs\python\python37\lib\shutil.py", line 580, in move
copy_function(src, real_dst)
File "c:\users\username\appdata\local\programs\python\python37\lib\shutil.py", line 266, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "c:\users\username\appdata\local\programs\python\python37\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'C:/testing/folder\\48\\Supplementary 48.mp4'
The file on drive is called: 48\Supplementary 48.mp4
First cheers for this cool code ๐
I am using it in Termux . And I am not seeing any progress bar . Maybe due to black background of termux . Can you help !
The setup process that your code is following, I found it to be vague.
I mean :
I installed drivedl than to use it first time it asks for credentials
(base) davas@davas:~$ drivedl
Missing Credentials!
Enable Drive API by clicking the blue button at https://developers.google.com/drive/api/v3/quickstart/python
Download the credentials.json file and save it here: /home/davas/anaconda3/lib/python3.8/site-packages/drivedl
but there is not blue button at the link referred.
Could you please clarify the step ?
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.