Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unable to download webpage #6257
Comments
|
Can you watch the video in browsers directly? |
|
Not without a proxy and I've tried setting up a proxy for youtube-dl too and it doesn't work. But my brother who uses the same ISP can download youtube videos even without proxy. I could do it before too but now I can't. |
|
Sometimes I get an error different from the first one. mahdi@JackJack:~$ youtube-dl --verbose -F https://www.youtube.com/watch?v=Ss39UktpXk0 |
|
What's the error message when using a proxy with youtube-dl? |
|
After reading http://unix.stackexchange.com/questions/71481/use-socks-proxy-for-commands-in-terminal I used this command: export http_proxy=socks5://127.0.0.1:8080 https_proxy=socks5://127.0.0.1:8080 And then: mahdi@JackJack:~$ youtube-dl --verbose --proxy 127.0.0.1:1080 -F https://www.youtube.com/watch?v=JG9c3uF8NbY |
|
socks5 proxies are not supported yet. See #402. |
|
I know :-/ that's why I googled it. I use a SSH connection. But my point is, I used to download videos without any proxy as my brother does right now |
|
Sorry if you can't watch the video in browsers, youtube-dl can't help more. |
|
I switched to Ubuntu 14.04 and now it works, despite being unable watch the videos in youtube.com |
I used to download from youtube but it gives me errors now. I have python3.4.3+ but it seems youtube-dl uses python 2.7.10.
mahdi@JackJack:~$ youtube-dl --verbose -F https://www.youtube.com/watch?v=XxWU-09R1SM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-F', u'https://www.youtube.com/watch?v=XxWU-09R1SM']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.10 - Linux-4.0.0-2-amd64-x86_64-with-debian-stretch-sid
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] XxWU-09R1SM: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer> (caused by URLError(error(104, 'Connection reset by peer'),))
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 312, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1729, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(_args)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 717, in https_open
req, *_kwargs)
File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)