CrabQuery - like JQuery, but for Crabs

CI Crates.io MIT licensed

Small and simple library to query HTML markup for your web scraping needs.

Based on servo libraries. Supports more complicated CSS selectors than other similar libraries.

Examples

```rust use crabquery::Document;

let doc = Document::from( "

text hi there
", );

let sel = doc.select("div.container > a.button.link[id=\"linkmain\"]"); let el = sel.first().unwrap();

assert_eq!(el.attr("id").unwrap(), "linkmain");

let sel = doc.select("div > a > span"); let el = sel.first().unwrap();

assert_eq!(el.text().unwrap(), "text hi there"); ```