Comments (11)
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.
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.
@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.
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.
0 folder found.
error image and sharefolder : https://hizliresim.com/ZLZrhh
from google-drive-folder-downloader.
You don't need to add folder_name
to your command. You just need python download-2.py test
from google-drive-folder-downloader.
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.
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.
You need to use python3.6 at least to support f string.
from google-drive-folder-downloader.
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.
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)
- Download.py HOT 2
- Script stops after a while HOT 1
- progress issue HOT 3
- Lack of license, I suggest the MIT one HOT 1
- ModuleNotFoundError: No module named 'googleapiclient' HOT 1
- ASK BRO HOT 5
- Doesn't seem to work in console HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-drive-folder-downloader.