YouTube-dl Proxy configuration


To my subsequent topic on youtube-dl, I am posting an update on this topic (i.e.) when you get a below error message when you try download videos from Youtube-dl.

Error: – “urllib2.URLError: <urlopen error [Errno 110] Connection timed out>

Trace back (most recent call last):

urllib2.URLError: <urlopen error [Errno 110] Connection timed out>

Warning: unable to set language: <urlopen error [Errno 101] Network is unreachable>”

I reduced the above error messages and posted  only vital error message.

Root cause:

  1. If your computer is connected with direct internet connection and you are getting the above error message, you need to check with ISP DNS address or network.
  2. If you access the internet through network proxy and you are getting an above error message then you miss the proxy configuration in .bashrc file.

Solution:

Please do the proxy configuration in your .bashrc file available in /home/user/.bashrc ; for  root user /root/.bashrc

export http_proxy=http://127.0.0.1:3128

export https_proxy=https://127.0.0.1:3128

export ftp_proxy=ftp://127.0.0.1:3128

export http_proxy=$http_proxy

export https_proxy=$https_proxy

export ftp_proxy=$ftp_proxy

This solves the problem.

Advertisements

One Response to YouTube-dl Proxy configuration

  1. Gourav Kumar says:

    do i have to copy paste above configuration in bash.bashrc??

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: