James-LG / Skyscraper

Rust library for scraping HTML using XPath expressions
MIT License
30 stars 3 forks source link

refactor(xpath)!: Simplify data model #37

Closed James-LG closed 3 weeks ago

James-LG commented 3 weeks ago

Merged tree and non-tree nodes into XpathItemTreeNode and moved data into the node itself. This will make it easier to access data in the results of an xpath expression by removing two layers of the data model.