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

feat: dynamic website crawler #2609

Merged
merged 2 commits into from
Sep 5, 2024
Merged

feat: dynamic website crawler #2609

merged 2 commits into from
Sep 5, 2024

Conversation

FinleyGe
Copy link
Contributor

@FinleyGe FinleyGe commented Sep 4, 2024

Expose a load function for pro-version, thus pro-version is unnecessary to install cheerio to analyze the HTML content.

@@ -101,3 +101,5 @@ export const urlsFetch = async ({

return response;
};

export const loadContent = async (content: string) => cheerio.load(content);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadContent ByCheerio 把,准确点

@FinleyGe FinleyGe requested a review from c121914yu September 5, 2024 06:44
@c121914yu c121914yu merged commit b423825 into labring:main Sep 5, 2024
3 checks passed
@FinleyGe FinleyGe deleted the spider branch September 6, 2024 02:12
FinleyGe added a commit to FinleyGe/FastGPT that referenced this pull request Sep 10, 2024
* feat: cheerio returns cherrio.load for pro version website sync

* chore: rename
@FinleyGe FinleyGe mentioned this pull request Sep 10, 2024
shilin66 pushed a commit to shilin66/FastGPT that referenced this pull request Sep 12, 2024
* feat: cheerio returns cherrio.load for pro version website sync

* chore: rename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants