GithubHelp home page GithubHelp logo

Comments (5)

matthuisman avatar matthuisman commented on June 2, 2024

Should download a folder OK as long as it has link sharing enabled.

from gdrivedl.

sqjin avatar sqjin commented on June 2, 2024

Hi @matthuisman , I got errors when downloading a shared folder. Please see below:
image

It is very useful if it can works on a folder. Thanks so much for developing this nice tool!!

from gdrivedl.

matthuisman avatar matthuisman commented on June 2, 2024

This script needs Python installed on the device.

The original bash script only works with files

from gdrivedl.

sqjin avatar sqjin commented on June 2, 2024

Do you have any suggestions on the following errors when I use the python function. Both python 2.7 and 3.6 give the same errors. Thanks!

1011 $ python gdrivedl.py https://drive.google.com/drive/folders/1HgQ1Ms90h_hQ1ME95ZXz-ddOSdJOA2jU?usp=sharing
Traceback (most recent call last):
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/data/apps/python/3.6.1/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/data/apps/python/3.6.1/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/data/apps/python/3.6.1/lib/python3.6/ssl.py", line 808, in init
self.do_handshake()
File "/data/apps/python/3.6.1/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/data/apps/python/3.6.1/lib/python3.6/ssl.py", line 683, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "gdrivedl.py", line 214, in
process_item(id, directory)
File "gdrivedl.py", line 84, in process_item
resp = urlopen(url)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/data/apps/python/3.6.1/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>

from gdrivedl.

matthuisman avatar matthuisman commented on June 2, 2024

Try
apt-get install -y python-certifi
Or
pip install --upgrade certifi

Or to skip checking certs
PYTHONHTTPSVERIFY=0 python gdriveldl.py

from gdrivedl.

Related Issues (20)

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.