更换bilibili_sub获取用户昵称用的API&尝试修了一下get_video() #1097
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
原API
http://api.bilibili.com/x/space/acc/info
在不加cookie
的情况下会概率性出现code -401
从而导致get_user_info
失败获取用户昵称可以使用
http://api.bilibili.com/x/web-interface/card
替代,目前简单测试下未出现-401
错误get_videos每次请求加了个cookie,使用
添加订阅upxxx
测试了下,-401情况出现率降低许多