RSSHub
RSSHub copied to clipboard
fix: xsrf request 403 error for Link Research
Link Research now will ban (403) requests with the UA header only, adding accept keep it working.
Involved Issue / 该 PR 相关 Issue
Example for the Proposed Route(s) / 路由地址示例
/linkresearcher/category=theses
New RSS Route Checklist / 新 RSS 路由检查表
- [ ] New Route / 新的路由
- [ ] Follows Script Standard / 跟随 路由规范
- [ ] Anti-bot or rate limit / 反爬/频率限制
- [ ] If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
- [ ] Date and time / 日期和时间
- [ ] Parsed / 可以解析
- [ ] Correct time zone / 时区正确
- [ ] New package added / 添加了新的包
- [ ]
Puppeteer
Note / 说明
How can we know the issue is fixed when route test is being skipped?
Stupid oversight =_=. Updated the PR description, but didn't trigger the removal of the Route Test Skipped label. Should I open a new PR? @TonyRL
Successfully generated as following:
http://localhost:1200/linkresearcher/category=theses - Failed ❌
HTTPError: Response code 503 (Service Unavailable)
Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">TypeError: Headers constructor: Argument 1 could not be converted to one of: sequence<sequence<ByteString>>, record<ByteString, ByteString>.</code>
Route: <code class="ml-2 bg-zinc-100">/linkresearcher/:params</code>
Full Route: <code class="ml-2 bg-zinc-100">/linkresearcher/category=theses</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">e57730a9</code>
This PR is stale because it has been opened for more than 3 weeks with no activity. Comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.