LifeActor / ykdl

a video downloader focus on China mainland video sites.(一款专注于中国大陆视频网站的视频下载器。)
https://github.com/LifeActor/ykdl
Other
1.45k stars 285 forks source link

B站 返回404 测试过代理,结果一样 #504

Closed LayneHe closed 4 years ago

LayneHe commented 4 years ago

在提交前,请确保您已经检查了以下内容!

请将错误输出粘贴在下面:

PS C:\Users\LayneHe\Videos> ykdl -i --debug https://www.bilibili.com/video/BV1MK411j7M7
DEBUG:common:video_host> www.bilibili.com
DEBUG:common:short_name> bilibili
DEBUG:html:get_content> URL: https://www.bilibili.com/avNone/
Traceback (most recent call last):
  File "C:\Users\LayneHe\scoop\apps\python36\current\scripts\ykdl-script.py", line 11, in <module>
    load_entry_point('ykdl==1.6.2', 'console_scripts', 'ykdl')()
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\site-packages\cykdl\__main__.py", line 173, in main
    info = parser(u)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\site-packages\ykdl\extractor.py", line 24, in parser
    info = self.prepare()
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\site-packages\ykdl\extractors\bilibili\bilibase.py", line 49, in prepare
    self.vid, info.title = self.get_vid_title()
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\site-packages\ykdl\extractors\bilibili\video.py", line 26, in get_vid_title
    html = get_content(self.url)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\site-packages\ykdl\util\html.py", line 67, in get_content
    response = urlopen(req)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 532, in open
    response = meth(req, response)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 570, in error
    return self._call_chain(*args)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "c:\users\laynehe\scoop\apps\python36\3.6.8\lib\urllib\request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

如果您有其他附言,例如问题只在某个视频发生,或者是一般性讨论或者提出新功能,请在下面添加:

测试过多个视频,代理与直连情况也都测试过。都会返回 404 但是网页端直接播放是没有问题的,IP没有被Ban.