Bilibili-Toolkit icon indicating copy to clipboard operation
Bilibili-Toolkit copied to clipboard

BV修复方法

Open justghostof opened this issue 4 years ago • 15 comments

将 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

justghostof avatar Mar 23 '20 08:03 justghostof

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

KiteMoon avatar Mar 23 '20 08:03 KiteMoon

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

justghostof avatar Mar 23 '20 08:03 justghostof

原版aid目前还是可以用的

justghostof avatar Mar 23 '20 08:03 justghostof

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

KiteMoon avatar Mar 23 '20 08:03 KiteMoon

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

justghostof avatar Mar 23 '20 08:03 justghostof

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

KiteMoon avatar Mar 23 '20 08:03 KiteMoon

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

justghostof avatar Mar 23 '20 08:03 justghostof

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

KiteMoon avatar Mar 23 '20 08:03 KiteMoon

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

KiteMoon avatar Mar 23 '20 09:03 KiteMoon

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

justghostof avatar Mar 23 '20 09:03 justghostof

这个也可以在线

justghostof avatar Mar 23 '20 09:03 justghostof

这个也可以在线

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

allenfengjr avatar Mar 24 '20 08:03 allenfengjr

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

justghostof avatar Mar 24 '20 08:03 justghostof

所以说还是等作者修复吧

justghostof avatar Mar 24 '20 08:03 justghostof

所以说还是等作者修复吧

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

Hsury avatar Mar 26 '20 14:03 Hsury