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

一般遇到403 forbidden要怎么办 #1

Open
ccwwhh101 opened this issue Feb 17, 2023 · 4 comments
Open

一般遇到403 forbidden要怎么办 #1

ccwwhh101 opened this issue Feb 17, 2023 · 4 comments

Comments

@ccwwhh101
Copy link

感觉流量很大的帖子都爬不下来

@cclinet
Copy link
Owner

cclinet commented Feb 17, 2023

我也不是很懂NGA的限流措施和游客认证方式,目前的方案就是瞎写的。。。
如果是第一页就 403 有可能是游客不能访问,中间页403可能触发了反爬?
等有空了可以加一下 cookie 登录的方式

@ccwwhh101
Copy link
Author

我也不是很懂NGA的限流措施和游客认证方式,目前的方案就是瞎写的。。。 如果是第一页就 403 有可能是游客不能访问,中间页403可能触发了反爬? 等有空了可以加一下 cookie 登录的方式

第一页就403,我怀疑是游客不能访问

@ccwwhh101
Copy link
Author

设置了自己的cookies可以爬下来,但是账号会被封吗hhhh

@cclinet
Copy link
Owner

cclinet commented Feb 17, 2023

第一页403的话可以用浏览器打开隐私模式访问网页验证下
设置 cookie 确实有风险,但是项目是用的是NGA的公开接口,并没有看到相关声明,此外也有NGA-CLIENT-VER-OPEN-SOURCE这样的项目存在。
但是官方加了好多广告,似乎不太允许第三方访问了吧
总之有空再说,这就是个摸鱼的项目

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

2 participants