-
自己写了一个简单的路由,用自己的帐号登录论坛,抓取更新的帖子,思路是:
问题:
|
Beta Was this translation helpful? Give feedback.
Answered by
shawn8888
Feb 5, 2022
Replies: 1 comment 1 reply
-
OK,解决了! const page = await browser.newPage();
await page.setUserAgent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shawn8888
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK,解决了!
问题还是出在useragent上。不知道为什么,RSSHub没有设置 Puppeteer 的useragent
手动添加的方法是: