[−][src]Crate parsoid
parsoid-rs
Wrapper around Parsoid HTML that provides convenient accessors for processing and extraction.
Inspired by mwparserfromhell, parsoid-jsapi and built on top of Servo's html5ever.
Mutation/modification is still a work in progress.
Example
Go through all templates on a page from the English Wikipedia
use parsoid::{Client, Result}; let client = Client::new("https://en.wikipedia.org/api/rest_v1", "parsoid-rs demo")?; let code = client.get("Taylor_Swift").await?; for template in code.filter_templates()? { dbg!(&template); }
Modules
error |
Structs
Client | HTTP client to get Parsoid HTML from MediaWiki's Rest APIs |
Comment | Represents a wikitext/HTML comment. |
ExtLink | Represents an external link ( |
Template | |
WikiLink | Represents an internal link ( |
Wikicode | Container instance for Parsoid HTML |
Enums
Wikinode |
Traits
WikinodeIterator | Collection of iterators that allows operating on a tree of Wikinodes |
Type Definitions
Result |