现在用户信息的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');
现在用户信息的api好像加强了效验 需要添加headers等避免提示非法检测
参考: