https://github.com/frozen/htmlquery
Html parsing library with jquery like css selectors
https://github.com/frozen/htmlquery
css html parser parsing rust
Last synced: about 1 month ago
JSON representation
Html parsing library with jquery like css selectors
- Host: GitHub
- URL: https://github.com/frozen/htmlquery
- Owner: Frozen
- Created: 2018-09-11T21:45:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T15:29:24.000Z (almost 8 years ago)
- Last Synced: 2025-09-12T18:29:45.852Z (10 months ago)
- Topics: css, html, parser, parsing, rust
- Language: HTML
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# htmlquery
Html parsing library with jquery like css selectors
### Installing
Add the following lines to your `Cargo.toml` file:
```toml
[dependencies]
htmlquery = {git="https://github.com/Frozen/htmlquery.git", tag = "0.1.1"}
```
### Examples
```rust
extern crate htmlquery;
use htmlquery::parse_html;
fn main() {
let html = r#"
"#;
let dom = parse_html(html);
assert_eq!(1, dom.all(".main a").len());
}
```
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)