谢谢回复。我已经改了源了,ykdl也安上了。不过还是不行,
请问你遇到过这样的问题么?谢谢
ykdl
https://www.bilibili.com/video/BV1BW411G7cW?p=63Traceback (most recent call last):
File "/usr/bin/ykdl", line 11, in <module>
load_entry_point('ykdl==1.6.2', 'console_scripts', 'ykdl')()
File "/usr/lib/python3.8/site-packages/cykdl/__main__.py", line 173, in main
info = parser(u)
File "/usr/lib/python3.8/site-packages/ykdl/extractor.py", line 24, in parser
info = self.prepare()
File "/usr/lib/python3.8/site-packages/ykdl/extractors/bilibili/bilibase.py", line 49, in prepare
self.vid, info.title = self.get_vid_title()
File "/usr/lib/python3.8/site-packages/ykdl/extractors/bilibili/video.py", line 26, in get_vid_title
html = get_content(self.url)
File "/usr/lib/python3.8/site-packages/ykdl/util/html.py", line 67, in get_content
response = urlopen(req)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
这个地址是没问题的,用浏览器是能播放的。
还有请问,你安装的是1.6.2版本么?我看好像已经有1.6.3了,不过
我用pip3 install --upgrade ykdl 安装的是1.6.2版。
【 在 SoulMelody 的大作中提到: 】
: 可以把pypi源换成清华的
https://mirrors.tuna.tsinghua.edu.cn/help/pypi/: 发自「今日水木 on Android」
--
FROM 222.94.216.*