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

youtube-dl with proxychains failed to download youtube video #13442

Closed
outsinre opened this issue Jun 20, 2017 · 2 comments
Closed

youtube-dl with proxychains failed to download youtube video #13442

outsinre opened this issue Jun 20, 2017 · 2 comments

Comments

@outsinre
Copy link

@outsinre outsinre commented Jun 20, 2017

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.06.18
  • [x ] At least skimmed through README and most notably FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • [x ] Bug report (encountered problems with youtube-dl)

Proxychains is configured with Shadowsocks (socks5).

(pyvenv3) jim@bobme $ proxychains youtube-dl -v -F https://www.youtube.com/watch?v=aw6RsUhw1Q8
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib64/libproxychains.so.4.11
[proxychains] DLL init: proxychains-ng 4.11
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.youtube.com/watch?v=aw6RsUhw1Q8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.18
[proxychains] DLL init: proxychains-ng 4.11
[debug] Python version 3.4.5 - Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.3
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] aw6RsUhw1Q8: Downloading webpage
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  61.91.161.217:443  ...  OK
ERROR: Unable to download webpage: <urlopen error EOF occurred in violation of protocol (_ssl.c:600)> (caused by URLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:600)'),))
  File "/home/jim/opt/pyvenv3/lib64/python3.4/site-packages/youtube_dl/extractor/common.py", line 502, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/jim/opt/pyvenv3/lib64/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 2129, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python3.4/urllib/request.py", line 464, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.4/urllib/request.py", line 482, in _open
    '_open', req)
  File "/usr/lib64/python3.4/urllib/request.py", line 442, in _call_chain
    result = func(*args)
  File "/home/jim/opt/pyvenv3/lib64/python3.4/site-packages/youtube_dl/utils.py", line 1086, in https_open
    req, **kwargs)
  File "/usr/lib64/python3.4/urllib/request.py", line 1185, in do_open
    raise URLError(err)

If I use youtube-dl --proxy socks5://127.0.0.1:1080/ some-youtube-URL directly without Proxychains involvement, youtube-dl works greatly.

@dstftw dstftw closed this Jun 20, 2017
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 20, 2017

Use --proxy.

@nagualcode
Copy link

@nagualcode nagualcode commented Sep 4, 2019

--proxy requires an argument, this is not how proxychains work

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
3 participants
You can’t perform that action at this time.