DEV Community

Discussion on: Practical XPath for Web Scraping

Collapse
almenon profile image
Almenon • Edited on

It's more powerful than CSS selectors

How much more powerful are they? I know they can be used to select based on node content, which is not possible with CSS. Any other advantages?

Edit: I did some more research and CSS is not able to select a parent, so XPath is more powerful in that regard too. Interesting.

stackoverflow.com/questions/101486...