causal-agent / scraper

HTML parsing and querying with CSS selectors
https://docs.rs/scraper
ISC License
1.81k stars 100 forks source link

Selector doesn't work properly #80

Closed nerdunit closed 2 years ago

nerdunit commented 2 years ago

Selector doesn't work with any of these patterns which are valid xpaths, the .unwrap() doesn't fail but it find 0 matches

p[class="tmp-image"] p>img

nerdunit commented 2 years ago

Also normal p doesn't return all the p's in the page

nerdunit commented 2 years ago

Apparently the crate doesn't check inside

causal-agent commented 2 years ago

issues need actual examples to reproduce the problem