Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download from youtube via proxy #4844

Open
ckissi opened this issue Feb 2, 2015 · 0 comments
Open

Cannot download from youtube via proxy #4844

ckissi opened this issue Feb 2, 2015 · 0 comments

Comments

@ckissi
Copy link

@ckissi ckissi commented Feb 2, 2015

I tried to download via proxy my private from youtube but got connection refused.

What I tried:

  1. Changed user agent to different ones
  2. Tried to extract info for same file without proxy and it works.
  3. I use that proxy in php with curl to download the same youtube URL and it works fine there

youtube-dl --verbose -s -j --user-agent "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)" --proxy name:password@X.X.80.180 http://www.youtube.com/watch?v=j8mW06gHL6k
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-s', '-j', '--user-agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)', '--proxy', 'name:password@X.X.80.180', 'http://www.youtube.com/watch?v=j8mW06gHL6k']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.02.02
[debug] Python version 2.7.1 - Darwin-11.4.2-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {u'http': 'name:password@X.X.80.180', u'https': 'name:password@X.X.80.180'}
ERROR: Unable to download webpage: <urlopen error [Errno 61] Connection refused> (caused by URLError(error(61, 'Connection refused'),))
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 300, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1575, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(_args)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 665, in https_open
req, *_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1174, in do_open
raise URLError(err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.