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

[新增/更新请求] <title>响应码 412 #1019

Open
1 task done
seanching opened this issue May 14, 2024 · 4 comments
Open
1 task done

[新增/更新请求] <title>响应码 412 #1019

seanching opened this issue May 14, 2024 · 4 comments

Comments

@seanching
Copy link

提交前请确认

  • 我已检索仓库中文档,不包含所提及内容,或所提及内容在本仓库中存在错误,且 Issues、Pull Requests 中无相关提交

API 来源

Web 端(含 h5)

API 类型

REST

API 地址

https://api.bilibili.com/x/space/wbi/arc/search

详情描述

params = mid=632171719&ps=30&tid=0&pn=2&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=%5B%5D&wts=1715596915&w_rid=f6703ce77a115975ece787a2be4aa9f3
拼接了wts和w_rid。之前是可以访问的。但是从周日起就无法访问。响应码为412

@SocialSisterYi
Copy link
Owner

code-412还是412

@0f-0b
Copy link
Contributor

0f-0b commented May 14, 2024

如果是 412 Precondition Failed 那么加 referer

@seanching
Copy link
Author

如果是 412 precondition Failed 那么加 。referer

增加referer之后,响应码回复200,但是打印requests获取到的数据。结果为:
响应码200
{'code': -403, 'message': '访问权限不足', 'ttl': 1}

@seanching
Copy link
Author

code-412还是412
增加referer之后解决了412的问题。但是现在又出现了{'code': -403, 'message': '访问权限不足', 'ttl': 1}的问题

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

3 participants