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

B站加强效验导致部分接口不可用 #153

Open
pandadtdyy opened this issue Sep 30, 2022 · 1 comment
Open

B站加强效验导致部分接口不可用 #153

pandadtdyy opened this issue Sep 30, 2022 · 1 comment

Comments

@pandadtdyy
Copy link

现在用户信息的api好像加强了效验 需要添加headers等避免提示非法检测

参考:

const { data } = await superagent.get('https://api.bilibili.com/x/space/acc/info?mid=1588646945&token=&platform=web&jsonp=jsonp')
    .set('Referer', 'https://space.bilibili.com/1588646945')
    .set('origin', 'https://space.bilibili.com')
    .set('Cookie', /* need get from bilibili */)
    .set('user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36');
@pandadtdyy
Copy link
Author

似乎也是 dd-center/vtbs.moe#400 的bug原因

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

No branches or pull requests

1 participant