Replace archived crate: kuchiki #35

Open
opened 2024-03-27 09:21:40 +00:00 by kemitix · 0 comments
Owner

A few popular and actively maintained crates for HTML parsing and manipulation based on common knowledge and practices in the Rust community:

  1. scraper: This crate is a fast and flexible HTML parsing library that allows you to navigate, search, and modify the DOM. It's designed to be easy to use and efficient, making it a great choice for web scraping and HTML manipulation tasks.

    [dependencies]
    scraper = "0.12.0"
    
  2. html5ever: This is a low-level HTML parsing library that aims to be fast and correct. It's more of a building block than a high-level library, but it can be used to build more complex HTML parsing and manipulation tools.

    [dependencies]
    html5ever = "0.25.3"
    
  3. select.rs: This crate provides a CSS selector library for Rust, allowing you to query and manipulate HTML documents using CSS selectors. It's built on top of scraper and html5ever, making it a convenient choice for projects that require CSS selector support.

    [dependencies]
    select = "0.5.0"
    

scraper is a good all-around choice for most HTML parsing and manipulation tasks, offering a balance of ease of use and performance.

html5ever is more of a low-level library that can be used for more complex or performance-critical applications.

select.rs is particularly useful if you need CSS selector support, as it provides a convenient interface for querying and manipulating HTML documents using CSS selectors.

- [kuchiki](https://github.com/kuchiki-rs/kuchiki) A few popular and actively maintained crates for HTML parsing and manipulation based on common knowledge and practices in the Rust community: 1. **scraper**: This crate is a fast and flexible HTML parsing library that allows you to navigate, search, and modify the DOM. It's designed to be easy to use and efficient, making it a great choice for web scraping and HTML manipulation tasks. ```toml [dependencies] scraper = "0.12.0" ``` 2. **html5ever**: This is a low-level HTML parsing library that aims to be fast and correct. It's more of a building block than a high-level library, but it can be used to build more complex HTML parsing and manipulation tools. ```toml [dependencies] html5ever = "0.25.3" ``` 3. **select.rs**: This crate provides a CSS selector library for Rust, allowing you to query and manipulate HTML documents using CSS selectors. It's built on top of `scraper` and `html5ever`, making it a convenient choice for projects that require CSS selector support. ```toml [dependencies] select = "0.5.0" ``` `scraper` is a good all-around choice for most HTML parsing and manipulation tasks, offering a balance of ease of use and performance. `html5ever` is more of a low-level library that can be used for more complex or performance-critical applications. `select.rs` is particularly useful if you need CSS selector support, as it provides a convenient interface for querying and manipulating HTML documents using CSS selectors.
kemitix added a new dependency 2024-03-27 09:34:25 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: kemitix/paperoni#35
No description provided.