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

Unable to access OpenEdx site https://openedx.seas.gwu.edu #129

Closed mjbright closed 9 years ago

mjbright commented 10 years ago

I've been using this script for a short while now for Edx - thanks very much for this.

I tried extending it to cover this new site, so I added code to handle 'gwu'

'gwu': { 'url': 'https://openedx.seas.gwu.edu', 'courseware-selector': ('nav', {'aria-label':'Course Navigation'}), },

But when I run the script in the same way I do for courses.edx.org, I get a timeout. Any suggestion as to what I can try to get this to work on https://openedx.seas.gwu.edu ?

Thanks in advance.

python /home/mjb/src/git/edx-downloader//edx-dl.py.mine -x gwu -u MYLOGIN -p MYPASS Traceback (most recent call last): File "/home/mjb/src/git/edx-downloader//edx-dl.py.mine", line 427, in main() File "/home/mjb/src/git/edx-downloader//edx-dl.py.mine", line 249, in main 'X-CSRFToken': get_initial_token(), File "/home/mjb/src/git/edx-downloader//edx-dl.py.mine", line 110, in get_initial_token opener.open(EDX_HOMEPAGE) File "/usr/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 422, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno 110] Connection timed out>

iemejia commented 9 years ago

I am closing this issue for the moment, since it is not a supported site for the script. Anyway It will be nice if somebody can do a PR to include the support.

iemejia commented 9 years ago

I decided to reopen the issue and let it like a possible enhancement.

iemejia commented 9 years ago

Treated in PR #186. Soon to be merged.