哔哩哔哩 接口 Bilibili Apis
API
bilibili
stub
This article discusses Bilibili APIs and the tools available for accessing them, such as different API collections and Python libraries like fake_useragent and curl-cffi. These tools help in making requests to Bilibili APIs.
哔哩哔哩对user agent有校验 要使用浏览器的UA或者fake_useragent的UA
生成随机的dm_*
参数
{"dm_img_list": "[]", # 鼠标/键盘操作记录
"dm_img_str": "".join(random.sample(dm_rand, 2)),
"dm_cover_img_str": "".join(random.sample(dm_rand, 2)),
"dm_img_inter": '{"ds":[],"wh":[0,0,0],"of":[0,0,0]}',
}
合成wbi
校验数据的算法没有变化
如果有必要的话,用curl-cffi
对抗tls fingerprinting
api合集
https://www.bilibili.com/read/cv3430609/
官方接口文档
https://github.com/fython/BilibiliAPIDocs
直播api
https://github.com/lovelyyoshino/Bilibili-Live-API
野生api收集
https://github.com/SocialSisterYi/bilibili-API-collect
python api
https://github.com/MoyuScript/bilibili-api
https://github.com/Nemo2011/bilibili-api (current)
https://github.com/Vespa314/bilibili-api