pub struct HtmlParser { /* private fields */ }
Implementations§
Source§impl HtmlParser
impl HtmlParser
pub fn new(html: &str) -> Self
pub fn select(&self, selector: &str) -> Result<Vec<String>>
pub fn select_attr( &self, selector: &str, attribute: &str, ) -> Result<Vec<String>>
pub fn extract_structured_data(&self) -> Result<Vec<Value>>
pub fn extract_opengraph(&self) -> Map<String, Value>
pub fn extract_twitter_card(&self) -> Map<String, Value>
Auto Trait Implementations§
impl Freeze for HtmlParser
impl !RefUnwindSafe for HtmlParser
impl !Send for HtmlParser
impl !Sync for HtmlParser
impl Unpin for HtmlParser
impl UnwindSafe for HtmlParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more