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

BV修复方法 #17

Open
justghostof opened this issue Mar 23, 2020 · 15 comments · Fixed by #22
Open

BV修复方法 #17

justghostof opened this issue Mar 23, 2020 · 15 comments · Fixed by #22

Comments

@justghostof
Copy link


start_url = 'https://api.bilibili.com/x/web-interface/view?aid=' + start
换为即可(start需换为BVID)
start_url = 'https://api.bilibili.com/x/web-interface/view?bvid=' + start

@KiteMoon
Copy link

我回头去试试,这次估计是B站想避嫌吧。。。

@justghostof
Copy link
Author

如果需要获取aid的话可以使用这个
json.loads(urllib.request.urlopen("https://api.bilibili.com/x/web-interface/view?bvid={}".format(input("[输入BViD(格式BVxxxx)]"))).read().decode())["data"]["aid"]

@justghostof
Copy link
Author

原版aid目前还是可以用的

@KiteMoon
Copy link

但是新视频似乎无法获取AID了
image这个得看B站是否提供了

@justghostof
Copy link
Author

emmm搞错了项目了...反正基本上所有api把aid换成bvid就行了

@KiteMoon
Copy link

可还行,刚才找到了个aid转bvid的链接
https://bv2av.com

@justghostof
Copy link
Author

可还行,我怀疑是唧唧群里的

@KiteMoon
Copy link

我是在樱花助手找的。。。这次改动对我这种python萌新无异于噩梦

@KiteMoon
Copy link

用了个笨办法解决。。。替换了所有av为BV、、、、

@justghostof
Copy link
Author

http://b2a.m-dr.cc/

@justghostof
Copy link
Author

这个也可以在线

@allenfengjr
Copy link

这个也可以在线

我试了一下,config.toml无法读入现在的bv号,字符串类型会导致错误,请问你是如何解决的?十分感谢!

@justghostof
Copy link
Author

这个估计得把源代码出错的地方改类型

@justghostof
Copy link
Author

所以说还是等作者修复吧

@Hsury
Copy link
Owner

Hsury commented Mar 26, 2020

所以说还是等作者修复吧

所以有没有PR呢∠(ᐛ」∠)_

@Hsury Hsury linked a pull request Jul 20, 2020 that will close this issue
Repository owner deleted a comment from ThuretGbenougan Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants