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.
youtube HTTPError: HTTP Error 403: Forbidden #13388
Comments
|
use the template https://github.com/rg3/youtube-dl/issues/new its easier for everyone |
|
Does the link working when you click on it behind your proxy on your browser? |
|
have the same problem. |
|
@star001007 Did you use proxies? |
|
@hi-august: What's the socks software at 127.0.0.1:1080? |
|
same issue, |
|
me too. happened last night, visited youtube by google-chrome or dl video by youtube-dl behind shadowsocks( server in usa ) locally(china mainland), it returned 403 forbidden. After I ran youtube-dl on my server, same 403 error. So it looks like the youtube block my server ip, I guess. |
|
@yan12125 I use shadowsocks(server in hongkong), It seems youtube block my proxy ip |
|
For all affected by 403 errors, could you run the following command and paste the output? Feel free to replace BO5-Nl-5Rpw with your favorite video ID.
|
|
youtube-dl --verbose https://www.youtube.com/watch?v=fDcO1OZY1C8 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=fDcO1OZY1C8'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.06.12 [debug] Python version 2.7.12 - Linux-4.8.0-54-generic-x86_64-with-Ubuntu-16.04-xenial [debug] exe versions: ffmpeg 2.8.11-0ubuntu0.1 |
look below plz
|
|
@zhangxulong How about this command?
curl -v --ipv4 "$(youtube-dl -g BO5-Nl-5Rpw -f best)" | head -c 1000 | base64
…On Fri, Jun 16, 2017 at 4:46 PM, 张旭龙 ***@***.***> wrote:
youtube-dl --verbose https://www.youtube.com/watch?v=fDcO1OZY1C8 [debug]
System config: [] [debug] User config: [] [debug] Custom config: [] [debug]
Command-line args: [u'--verbose', u'https://www.youtube.com/
watch?v=fDcO1OZY1C8'] [debug] Encodings: locale UTF-8, fs UTF-8, out
UTF-8, pref UTF-8 [debug] youtube-dl version 2017.06.12 [debug] Python
version 2.7.12 - Linux-4.8.0-54-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13388 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2RGS5MrUeLah_1QTPjr_uvor3209wvks5sEkD8gaJpZM4N65T6>
.
|
|
|
243.185.187.39 is not a valid Google IP. Most likely that's DNS
pollution, a technique often used to block websites like YouTube if
you are in China.
On the other hand, YouTube sometimes blocks IPv6 connections. (#5138)
Above all, you'll need to either ask Google to stop blocking those
IPv6 connections or find a way to escape the Great Firewall.
…On Fri, Jun 16, 2017 at 5:05 PM, 张旭龙 ***@***.***> wrote:
@yan12125
curl -v --ipv4 "$(youtube-dl -g BO5-Nl-5Rpw -f best)" | head -c 1000 | base64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 243.185.187.39...
0 0 0 0 0 0 0 0 --:--:-- 0:01:14 --:--:-- 0^Z
[1]+ Stopped curl -v --ipv4 "$(youtube-dl -g BO5-Nl-5Rpw -f best)" | head -c 1000 | base64
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
oh maybe our edu Ipv6 address were blocked. |
|
@indexofire Could you try to disable IPv6 on the server? Maybe Shadowsocks configuration should be changed, too. |
|
Seems a shadowsocks issue: https://github.com/shadowsocks/shadowsocks/issues/867 |
|
之前遇到同样的问题,issue,但是今天没做设置改动忽然已经可以看视频。
显示的仍然是93.46.8.89这个污染的IP。彻底糊涂了。google-chrome版本 56.0.2924.87 (64-bit),另外之前我用firefox也是和chrome一样的无法放视频。 |
|
As per https://github.com/shadowsocks/shadowsocks/issues/867#issuecomment-310672607, Google no longer blocks exotic configurations like shadowsocks. I believe this issue can be closed. Feel free to leave comments below if you still got 403 errors with similar configurations (shadowsocks, Hong Kong servers, etc.) and I'll reopen. |
(env) ➜ ~ youtube-dl -v --proxy socks5://127.0.0.1:1080/ BO5-Nl-5Rpw
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--proxy', u'socks5://127.0.0.1:1080/', u'BO5-Nl-5Rpw']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.12
[debug] Python version 2.7.10 - Linux-4.2.0-16-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: none
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080/', u'https': u'socks5://127.0.0.1:1080/'}
[youtube] BO5-Nl-5Rpw: Downloading webpage
[youtube] BO5-Nl-5Rpw: Downloading video info webpage
[youtube] BO5-Nl-5Rpw: Extracting video information
[youtube] BO5-Nl-5Rpw: Downloading MPD manifest
[debug] Invoking downloader on u'https://r5---sn-i3belnel.googlevideo.com/videoplayback?key=yt6&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&ratebypass=yes&ip=150.129.82.175&mm=31&mn=sn-i3belnel&lmt=1493422663787407&ipbits=0&dur=331.255&itag=22&pl=24&source=youtube&expire=1497537051&mv=u&mt=1497515313&ei=u0VCWfHLC96S4QKq3JjQDw&ms=au&signature=B935778175AF27EFC63F95885A4BBED12F84612E.AE73D39B440AB2CD30925EE6C37E877062D4ADEB&requiressl=yes&id=o-ADHlPPFX2rBnJW8qhU204yUP0FVgI62mmBSc2BdW0Ou0&mime=video%2Fmp4'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/home/august/.virtualenvs/env/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1826, in process_info
success = dl(filename, info_dict)
File "/home/august/.virtualenvs/env/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1768, in dl
return fd.download(name, info)
File "/home/august/.virtualenvs/env/local/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 360, in download
return self.real_download(filename, info_dict)
File "/home/august/.virtualenvs/env/local/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 61, in real_download
data = self.ydl.urlopen(request)
File "/home/august/.virtualenvs/env/local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2129, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
(env) ➜ ~
how can i fix it