scrapy / parsel

Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors
BSD 3-Clause "New" or "Revised" License
1.15k stars 146 forks source link

Add support for js object parser? #306

Open abebus opened 1 month ago

abebus commented 1 month ago

https://github.com/Nykakin/chompjs

Wouldn't it be nice to access data contained in script tags directly from Selector? E.g. sample_selector.css("path to script").js().jmespath("foo.bar")