mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-13 00:35:19 +08:00
fix(route): nmpa stealth puppeteer (#11279)
This commit is contained in:
@@ -7,7 +7,7 @@ const baseUrl = 'https://www.nmpa.gov.cn';
|
||||
module.exports = async (ctx) => {
|
||||
const path = ctx.params[0];
|
||||
const url = `${baseUrl}/${path.endsWith('/') ? path.slice(0, -1) : path}/index.html`;
|
||||
const browser = await require('@/utils/puppeteer')();
|
||||
const browser = await require('@/utils/puppeteer')({ stealth: true });
|
||||
const data = await ctx.cache.tryGet(
|
||||
url,
|
||||
async () => {
|
||||
|
||||
Reference in New Issue
Block a user