Giter Site home page Giter Site logo

architdate / drivedl Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 26.0 68 KB

Download files from Google Drive (inclusive of teamdrives, shared with me and my drive) concurrently.

License: MIT License

Python 100.00%
concurrent drive google pypi-package teamdrive

drivedl's People

Contributors

architdate avatar goldbattle avatar notfullmetal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drivedl's Issues

Re-running Download

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.

No valid accounts with access to the file/folder. Exiting...

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.

File not found in account

Screenshot from 2020-07-07 20-38-26

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.

  1. Downloading is also not working, it recognises the ID but the download doesn't actually begin.
  2. I can't also search for files within my account.
  3. I have readded my account and as well recreated the credentials.json

Filename Issue

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

Can't see the progress bar !

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 !

A vague description of setup

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.