YouTube-dl Proxy configuration

来源:互联网 发布:电脑连接单片机 编辑:程序博客网 时间:2024/04/27 17:01

Install:

youtube-dl webpage: http://rg3.github.com/youtube-dl/index.html

or

sudo apt-get install youtube-dl


===========================================

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

Trace back (most recent call last):

......

===========================================


Root cause:

  1. If your computer is connected with direct internet connection and you are getting the above error message, you need to check withISP 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:3128export https_proxy=https://127.0.0.1:3128export ftp_proxy=ftp://127.0.0.1:3128export http_proxy=$http_proxyexport https_proxy=$https_proxyexport ftp_proxy=$ftp_proxy


This solves the problem.



原创粉丝点击