dgorissen / coursera-dl

A script for downloading course material (video's, pdfs, quizzes, etc) from coursera.org
http://dirkgorissen.com/2012/09/07/coursera-dl-a-coursera-download-script/
GNU General Public License v3.0
1.74k stars 300 forks source link

Problem with proxy authentication #17

Closed emmedema closed 11 years ago

emmedema commented 11 years ago

I am trying to use the script at work, behind a corporate proxy. Everything works from the network perspective (I pip-installed coursera-dl without problems) but when I try to use the script, I get this error:

File "/home/xyz/.virtualenvs/coursera/lib/python2.7/site-packages/mechanize/_urllib2_fork.py", line 1118, in do_open raise URLError(err) urllib2.URLError: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>

Shouldn't urllib get the setup default proxy configurations from the system? Also, maybe the addition of a --proxy parameter could come handy...

dgorissen commented 11 years ago

Added an option (-x flag) have a try and see if it works for you.