GithubHelp home page GithubHelp logo

Comments (11)

delbs27 avatar delbs27 commented on June 3, 2024

I can get it to find the folders now which is good. I cant get it to retrieve any of the files contained within though. does it have anything to do with the url defined within SCOPES variable?

from google-drive-folder-downloader.

segnolin avatar segnolin commented on June 3, 2024

Thank you for using the script!

This script only finds the folder inside the “My Drive” and “Share” tabs in personal google drive, which means that unless you add the public share folder to your “Share” tab, it won’t find the folder. Also, the current script can only accept folder name, not url.

If there is only one folder that match the “folder_name” argument, it will directly download all the content inside the folder. If more than one match, it will let you choose which to download.

Regarding the SCOPES variable, I think drive.readonly is enough.
If the script still has the problem, please let me know, and if possible, please provide the step to reproduce, or some screenshots to let me investigate the issue. Thanks!

from google-drive-folder-downloader.

rewiaca avatar rewiaca commented on June 3, 2024

@segnolin thanks for explanation, that's not really handy to mark a bunch of publicly available google folders as a Shared to my account. Gonna look for another solution. Anyway, thanks for sharing.

from google-drive-folder-downloader.

ahmettepe105 avatar ahmettepe105 commented on June 3, 2024

ubuntu@ip:/var/www/html/aaa/gdriveup$ python download-2.py 111
1mcu1oWq86JOURlnpkJED5JYJkXM-o5Az 111
Traceback (most recent call last):
File "download-2.py", line 131, in
main()
File "download-2.py", line 61, in main
download_folder(service, folder_id, location, unicode(folder_name, 'utf-8'))
TypeError: decoding Unicode is not supported
ubuntu@ip:/var/www/html/aaa/gdriveup$

sharefolder image : https://hizliresim.com/spE9Zy

Please help me.

from google-drive-folder-downloader.

ahmettepe105 avatar ahmettepe105 commented on June 3, 2024

0 folder found.

error image and sharefolder : https://hizliresim.com/ZLZrhh

from google-drive-folder-downloader.

segnolin avatar segnolin commented on June 3, 2024

You don't need to add folder_name to your command. You just need python download-2.py test

from google-drive-folder-downloader.

segnolin avatar segnolin commented on June 3, 2024

Regarding to the unicode issue, I currently have no environment for python2 on ubuntu to test it out. I suggest using python3 because of its greater support for unicode. If you really need to use python2, I will investigate it more in depth.

from google-drive-folder-downloader.

ahmettepe105 avatar ahmettepe105 commented on June 3, 2024

python 3 error

ubuntu@ip/var/www/html/aaa/gdriveup$ python3 download.py depo
File "download.py", line 37
q=f"name contains '{sys.argv[1]}' and mimeType='application/vnd.google-apps.folder'",
^
SyntaxError: invalid syntax
ubuntu@:/var/www/html/aaa/gdriveup$

from google-drive-folder-downloader.

segnolin avatar segnolin commented on June 3, 2024

You need to use python3.6 at least to support f string.

from google-drive-folder-downloader.

ahmettepe105 avatar ahmettepe105 commented on June 3, 2024

ubuntu@ip/var/www/html/aaa/gdriveup$ python3.6 download.py depo
Traceback (most recent call last):
File "download.py", line 3, in
from google_auth_oauthlib.flow import InstalledAppFlow
ModuleNotFoundError: No module named 'google_auth_oauthlib'
ubuntu@ip:/var/www/html/aaa/gdriveup$

from google-drive-folder-downloader.

segnolin avatar segnolin commented on June 3, 2024

Please check out the latest commit and install the required dependencies (such as google_auth_oauthlib) and try if it works. Thanks!

from google-drive-folder-downloader.

Related Issues (8)

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.