Skip to content

Conversation

kukuze
Copy link

@kukuze kukuze commented Feb 29, 2024

When crawling a webpage, if a custom selector is selected, but the initial page does not have a suitable selection object, it will cause the crawler to fail. If a custom selector is not used, the truly valuable page (which can filter out a lot of useless information through the selector) will have a lot more useless information, such as the "homepage". So this submission can be used when a custom selector is available, and when it is not possible, use "body" as the CSS selector.

@kukuze kukuze closed this Feb 29, 2024
@kukuze kukuze reopened this Feb 29, 2024
@kukuze kukuze changed the title feat: Customizing CSS selectors can sometimes cause web crawlers to fail feat: Customizing selector can sometimes cause web crawlers to fail Feb 29, 2024
@marcelovicentegc marcelovicentegc added the enhancement New feature or request label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants