DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
33.94k stars 7.57k forks source link

NGA部分版面的帖子无法获得 #17303

Open Bianca2000 opened 1 month ago

Bianca2000 commented 1 month ago

Routes

/nga/post/:tid/:authorId?

Full routes

/nga/post/38508595

Related documentation

https://docs.rsshub.app/zh/routes/bbs#nga

What is expected?

獲取帖子內容

What is actually happening?

FetchError: [GET] "https://nga.178.com/read.php?tid=38508595&page=3656&rand=440.52058106010605#": 403 Forbidden

Deployment information

Self-hosted

Deployment information (for self-hosted)

https://rss.peachyjoy.top/

Additional info

Service Unavailable

This is not a duplicated issue

github-actions[bot] commented 1 month ago
Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

pseudoyu commented 4 weeks ago

The route works well and the 403 error is caused by the nga anti-crawler/restrictions. May be you can decrease the fetching interval and try again.

RikaCelery commented 2 weeks ago

虽然但是你给的那个帖子可以正常访问

我在测试/nga/post/41312589的时候遇到了这个问题

只有rsshub没法正常获取内容 curl/burp suite/chrome啥的都没问题 burp suite拦截请求再发送的时候也没问题 但是如果不拦截请求直接放行就403 image 感觉是HTTP/2的神奇问题,重试一次就能正常访问了 你可以修改这里lib/utils/ofetch.ts让ofetch自动重试403页面,我这里重试到第二次就可以正常访问了