From b4238257b699168c19ebb1b3c5fcc2d6a8f2c75f Mon Sep 17 00:00:00 2001 From: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:49:57 +0800 Subject: [PATCH] feat: dynamic website crawler (#2609) * feat: cheerio returns cherrio.load for pro version website sync * chore: rename --- packages/service/common/string/cheerio.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/service/common/string/cheerio.ts b/packages/service/common/string/cheerio.ts index 495486e20..ca493c358 100644 --- a/packages/service/common/string/cheerio.ts +++ b/packages/service/common/string/cheerio.ts @@ -101,3 +101,5 @@ export const urlsFetch = async ({ return response; }; + +export const loadContentByCheerio = async (content: string) => cheerio.load(content);