scraper icon indicating copy to clipboard operation
scraper copied to clipboard

HTML parsing and querying with CSS selectors

Results 40 scraper issues
Sort by recently updated
recently updated
newest added

Please add the ability to get an `ElementRef` of an `ElementRef`'s parent (and any ancestor/sibling), so that one can call `.html()` (and other `ElementRef` methods) on the parent :)

Both `Html` & `ElementRef` support the same method `select`. Having that method implemented as a Trait would allow to create a function that can accept both, and would allow to...

C-enhancement

Inspired by [this blog post](https://blog.0xfa.be/building-a-backend-app-in-rust/) which mentions some API struggles with writing a Rust backend program, and one of the mentioned things is that `Selector::parse('...').unwrap()` is not ergonomic when the...

C-enhancement

Some returned `Result`s returned by scraper functions use error types from the `cssparser` crate. Unfortunately in my project, I cannot handle them (e.g. using `thiserror`) without adding `cssparser` to my...

C-enhancement

`LocalName::new` called for something that isn't in https://github.com/servo/html5ever/blob/master/markup5ever/local_names.txt locks a global Mutex. As `LocalName::new` is called for every class in `Element::new`, and most classes are unlikely to be in that...

Clicked the enter key too early (oops)! cc @cfvescovo we should try to cut a new release (probably v0.14) at some point (we don't have many changes, but as they...

While traversing, the html tags were malformed on both while and for loops. you can see the example at: the `body` and other nested tags closed unexpectedly, https://github.com/SycaPerse/sytags/blob/main/src/bin/sytree.rs can you...

C-bug

In the case, select tags which are siblings of a tag containing some text. I don't have clue to do that... It would be great to have a method, find...

How to select only `pre.CCC` with "Hello, Rust!" immediately before it, in the code below? ```html Hello, Rust! ... ----------> O ... ... ----------> X ```

C-question

I have the following input HTML file: ```html

C-bug