Skip to content

Support XPath usage for html sources #195

@cleanhands

Description

@cleanhands

CSS unfortunately does not have a :contains() pseudo-class which makes it difficult to extract information from html in some circumstances.
https://www.w3.org/TR/selectors-3/#content-selectors

XPath can select for the contents of an element with text(), for example like this //h1[text()='Session']. This makes XPath extremely useful for scraping certain html sources.
https://www.scrapingbee.com/webscraping-questions/xpath/how-to-select-elements-by-text-in-xpath/

If xq could use XPath on html it would be a useful upgrade.

Thank you for all the work done on this great software.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions