coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 640 forks source link

Can only download the first lesson #635

Open Fyleth-7 opened 4 years ago

Fyleth-7 commented 4 years ago

🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.

Subject of the issue

Only the first section is downloaded

Your environment

Steps to reproduce

https://courses.edx.org/courses/course-v1:IsraelX+infosec101+3T2019a/course/

Expected behaviour

Download all 5 sections

Actual behaviour

1-Lesson1-Vulnerabilities_Exploits_and_Why_You_Should_Care\11-IsraelXinfosec101-V004600DTH.mp4 [download] https://www.owasp.org/images/1/1b/Shellshock-_Tudor_Enache.pdf => Downloaded\Unlocking_Information_Security-Part\01-Lesson1-Vulnerabilities_Exploits_and_Why_You_ShouldCare\12-Shellshock-_Tudor_Enache.pdf [download] http://www-inst.eecs.berkeley.edu/~cs161/fa08/papers/stack_smashing.pdf => Downloaded\Unlocking_Information_Security-Part\01-Lesson1-__Vulnerabilities_Exploits_and_Why_You_Should_Care\12-stack_smashing.pdf Certificate did not match expected hostname: www-inst.eecs.berkeley.edu. Certificate: {'subject': ((('countryName', 'US'),), (('postalCode', '94720'),), (('stateOrProvinceName', 'California'),), (('localityName', 'Berkeley'),), (('streetAddress', '200 California Hall #1500'),), (('organizationName', 'University of California, Berkeley (Regents of the Univ. of CA)'),), (('organizationalUnitName', 'EECS'),), (('commonName', 'inst.eecs.berkeley.edu'),)), 'issuer': ((('countryName', 'US'),), (('stateOrProvinceName', 'MI'),), (('localityName', 'Ann Arbor'),), (('organizationName', 'Internet2'),), (('organizationalUnitName', 'InCommon'),), (('commonName', 'InCommon RSA Server CA'),)), 'version': 3, 'serialNumber': '3F91165B1FFB47557DFB8347C04B7F00', 'notBefore': 'Nov 20 00:00:00 2019 GMT', 'notAfter': 'Nov 19 23:59:59 2021 GMT', 'subjectAltName': (('DNS', 'inst.eecs.berkeley.edu'),), 'OCSP': ('http://ocsp.usertrust.com',), 'caIssuers': ('http://crt.usertrust.com/InCommonRSAServerCA_2.crt',), 'crlDistributionPoints': ('http://crl.incommon-rsa.org/InCommonRSAServerCA.crl',)} Got SSL/Connection error: HTTPSConnectionPool(host='www-inst.eecs.berkeley.edu', port=443): Max retries exceeded with url: //~cs161/fa08/papers/stack_smashing.pdf (Caused by SSLError(SSLCertVerificationError("hostname 'www-inst.eecs.berkeley.edu' doesn't match 'inst.eecs.berkeley.edu'"))) Hint: if you want to ignore this error, add --ignore-errors option to the command line Traceback (most recent call last): File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 976, in _validate_conn conn.connect() File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connection.py", line 396, in connect _match_hostname(cert, self.assert_hostname or server_hostname) File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connection.py", line 406, in _match_hostname match_hostname(cert, asserted_hostname) File "c:\users\fatim\anaconda3\lib\ssl.py", line 420, in match_hostname raise CertificateError("hostname %r " ssl.SSLCertVerificationError: ("hostname 'www-inst.eecs.berkeley.edu' doesn't match 'inst.eecs.berkeley.edu'",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\users\fatim\anaconda3\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\connectionpool.py", line 724, in urlopen retries = retries.increment( File "c:\users\fatim\anaconda3\lib\site-packages\urllib3\util\retry.py", line 439, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www-inst.eecs.berkeley.edu', port=443): Max retries exceeded with url: //~cs161/fa08/papers/stack_smashing.pdf (Caused by SSLError(SSLCertVerificationError("hostname 'www-inst.eecs.berkeley.edu' doesn't match 'inst.eecs.berkeley.edu'")))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\users\fatim\anaconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\fatim\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\fatim\anaconda3\Scripts\edx-dl.exe__main__.py", line 7, in File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 1073, in main download(args, selections, filtered_units, headers) File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 849, in download download_unit(unit, args, target_dir, filename_prefix, File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 822, in download_unit skip_or_download(res_downloads, headers, args) File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 781, in skip_or_download f(url, filename, headers, args) File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 736, in download_url raise e File "c:\users\fatim\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 728, in download_url r = requests.get(url, headers=headers) File "c:\users\fatim\anaconda3\lib\site-packages\requests\api.py", line 76, in get return request('get', url, params=params, kwargs) File "c:\users\fatim\anaconda3\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "c:\users\fatim\anaconda3\lib\site-packages\requests\sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "c:\users\fatim\anaconda3\lib\site-packages\requests\sessions.py", line 665, in send history = [resp for resp in gen] File "c:\users\fatim\anaconda3\lib\site-packages\requests\sessions.py", line 665, in history = [resp for resp in gen] File "c:\users\fatim\anaconda3\lib\site-packages\requests\sessions.py", line 237, in resolve_redirects resp = self.send( File "c:\users\fatim\anaconda3\lib\site-packages\requests\sessions.py", line 643, in send r = adapter.send(request, kwargs) File "c:\users\fatim\anaconda3\lib\site-packages\requests\adapters.py", line 514, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='www-inst.eecs.berkeley.edu', port=443): Max retries exceeded with url: //~cs161/fa08/papers/stack_smashing.pdf (Caused by SSLError(SSLCertVerificationError("hostname 'www-inst.eecs.berkeley.edu' doesn't match 'inst.eecs.berkeley.edu'")))