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

Use compiled CSS selectors instead of reparsing their XPath #716

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

apasel422
Copy link
Contributor

https://lxml.de/cssselect.html#the-cssselector-class

These selectors can only return elements, so there is no need to go through the result processing performed in the xpath method.

Fixes #711

https://lxml.de/cssselect.html#the-cssselector-class

These selectors can only return elements, so there is no need to go
through the result processing performed in the xpath method.

Fixes standardebooks#711
@apasel422 apasel422 marked this pull request as ready for review June 21, 2024 15:14
@acabal acabal merged commit cfaced9 into standardebooks:master Jun 22, 2024
1 check passed
@acabal
Copy link
Member

acabal commented Jun 22, 2024

Excellent, thanks!

@apasel422 apasel422 deleted the cssselector branch June 22, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

css_select method reparses XPath every time
2 participants