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

Proxy Support #274

Open newinnov opened 9 years ago

newinnov commented 9 years ago

Kindly provide proxy support for the edx-dl tool, may be a command line argument to input proxy.

I am getting this error, when I access this tool in a proxy network-

urllib.error.URLError: urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

balta2ar commented 9 years ago

What kind of proxy do you need?

My first intention is to suggest you to try to solve this problem using external tools like proxychains, tsocks or maybe configuring a transparent proxy.

If the problem can be solved with these tools, I'd abstain from supporting it in the code.

rbrito commented 9 years ago

@newinnov, You are apparently using windows, right?

I'm not really sure if command line programs under windows follow the usual convention of setting the environment variables http_proxy and https_proxy, but you can try one of those, at least.

Please, note that I have 0 experience with Windows.

On Aug 10 2015, Yuri Bochkarev wrote:

If the problem can be solved with these tools, I'd abstain from supporting it in the code.

100% agreed.

Thanks,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

newinnov commented 9 years ago

@rbrito , Yes, I am using Windows.

Thankyou for pointing out 'http_proxy' and 'https_proxy' method. It works fine.

Thank you again. :)

rbrito commented 9 years ago

@newinnov, can you help us contributing to our documentation with the steps that you took so that the program worked for you?

I think that many users would really appreciate such kind of instruction (which I can't particularly give, since I don't have Windows nor I need to use a proxy for my internet access).

Again, any kind of help with the documentation from our users (which I also regard as contributors) is welcome.

Thanks,

Rogério Brito.

jraoatlogic commented 8 years ago

Just run the following command on command line before running edx-dl:

set http_proxy=http://<proxy host>:<proxy port>