LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing proxy settings for youtube-dl (https://www.linuxquestions.org/questions/linux-newbie-8/changing-proxy-settings-for-youtube-dl-4175427857/)

ansikmahapatra 09-18-2012 01:32 PM

Changing proxy settings for youtube-dl
 
I installed youtube-dl a few months back and it worked perfectly fine when connected to internet through public wifi hotspots. But I am unable to download videos when these's proxy authentication required while accessing internet. I have gone through the youtube-dl documentation, but I couldn't find my solution there. The error I get now is this:

[youtube] Setting language
WARNING: unable to set language: HTTP Error 407: Proxy Authentication Required
[youtube] BFtv5qe5o3c: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 407: Proxy Authentication Required


Please help me out, since I am a newbie.

dru8274 09-19-2012 12:08 AM

My knowledge on this is not extensive. But I did through necessity manage to get youtube-dl to work on the authenticated proxy at the local university. Your http_proxy environment variable needs to be set with your specifics for username/password, and the IP-address/port of the proxy. If you export that in the shell prior to using youtube-dl, then it should work.

See below for the general format for setting http_proxy, and a generic example. I hope that helps.
Code:

export http_proxy=http://username:password@yourproxyaddress:proxyport

export http_proxy=http://myname:101010101@proxy.student.otago.ac.nz:3128

Happy with ur solution... then tick "yes" and mark as Solved!


All times are GMT -5. The time now is 07:09 PM.