Registry / utility / soup
library0.5.1rscratesunverified

A layer on top of html5ever that provides a BeautifulSoup-like API for querying and manipulating HTML.

# Cargo.toml [dependencies] soup = "0.5.1"
INSTALL
IMPORT
SIG · SOUP
S
soup
utilityrustv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Soup
use soup::prelude::*;

Parse HTML and extract text from a <p> tag.

use soup::prelude::*; fn main() -> Result<(), soup::Error> { let html = "<html><body><p id='main'>Hello</p></body></html>"; let soup = Soup::new(html); if let Some(tag) = soup.tag("p").find() { println!("Text: {}", tag.text()); } Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
soup — cargo add soup · libregistry