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.
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.