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

XPATH support for enqueue_links #847

Open
Ehsan-U opened this issue Dec 29, 2024 · 1 comment
Open

XPATH support for enqueue_links #847

Ehsan-U opened this issue Dec 29, 2024 · 1 comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@Ehsan-U
Copy link

Ehsan-U commented Dec 29, 2024

It would be great if it supports passing xpath selector as well. currently it only support CSS selector.
await context.enqueue_links(selector="article h3 a")

@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 29, 2024
@manaschakrabortty
Copy link

It would be great to see XPath selector support added. XPath is often more flexible for certain use cases compared to CSS selectors, and having both options would make the library more versatile. For example, XPath can target elements based on their attributes or positions in a way that's sometimes tricky with CSS selectors. Hope this feature gets considered!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants