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

error 400:bad request #572

Closed vikram2078 closed 4 years ago

vikram2078 commented 4 years ago

Unable to login to edx through command prompt.I have added edx-dl-master folder to Anaconda 1. 1. I have installed edx-dl (pip install edx-dl), 2.Upgraded youtube(pip install --upgrade youtube-dl

But the following error occurred while login to edx.

Building initial headers for future requests. Getting initial CSRF token. Traceback (most recent call last): File "C:\Users\vikra\AppData\Local\Programs\Python\Python38\Scripts\edx-dl-script.py", line 11, in load_entry_point('edx-dl==0.1.10', 'console_scripts', 'edx-dl')() File "c:\users\vikra\appdata\local\programs\python\python38\lib\site-packages\edx_dl\edx_dl.py", line 1000, in main headers = edx_get_headers() File "c:\users\vikra\appdata\local\programs\python\python38\lib\site-packages\edx_dl\edx_dl.py", line 425, in edx_get_headers 'X-CSRFToken': _get_initial_token(EDX_HOMEPAGE), File "c:\users\vikra\appdata\local\programs\python\python38\lib\site-packages\edx_dl\edx_dl.py", line 167, in _get_initial_token opener.open(url) File "c:\users\vikra\appdata\local\programs\python\python38\lib\urllib\request.py", line 531, in open response = meth(req, response) File "c:\users\vikra\appdata\local\programs\python\python38\lib\urllib\request.py", line 640, in http_response response = self.parent.error( File "c:\users\vikra\appdata\local\programs\python\python38\lib\urllib\request.py", line 569, in error return self._call_chain(args) File "c:\users\vikra\appdata\local\programs\python\python38\lib\urllib\request.py", line 502, in _call_chain result = func(args) File "c:\users\vikra\appdata\local\programs\python\python38\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request

Can any one help me out from this issue.

balta2ar commented 4 years ago

Released version 0.1.11, give it a try.