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 639 forks source link

Edx-dl issue #671

Open redlunchboxmanufacture opened 3 years ago

redlunchboxmanufacture commented 3 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

Extracting course information from dashboard. Traceback (most recent call last): File "c:\users\aidan\anaconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\aidan\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\aidan\anaconda3\Scripts\edx-dl.exe__main__.py", line 7, in File "c:\users\aidan\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 1020, in main all_selections = {selected_course: File "c:\users\aidan\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 1021, in get_available_sections(selected_course.url.replace('info', 'course'), File "c:\users\aidan\anaconda3\lib\site-packages\edx_dl\edx_dl.py", line 184, in get_available_sections page = get_page_contents(url, headers) File "c:\users\aidan\anaconda3\lib\site-packages\edx_dl\utils.py", line 58, in get_page_contents result = urlopen(Request(url, None, headers)) File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 222, in urlopen return opener.open(url, data, timeout) File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 531, in open response = meth(req, response) File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 640, in http_response response = self.parent.error( File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 569, in error return self._call_chain(args) File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 502, in _call_chain result = func(args) File "c:\users\aidan\anaconda3\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden

Your environment

Steps to reproduce

downloading from edx on several courses I am enrolled in error as above

Expected behaviour

Tell us what should happen.

Actual behaviour

Tell us what happens instead. If the script fails, please copy the entire output of the command or the stacktrace (don't forget to obfuscate your username and password). If you cannot copy the exception, attach a screenshot.

floviolleau commented 3 years ago

Hi,

You have a 403 error. There are other issues for the same thing.

For eg: #662

Kind regards