Scrape

Trait Scrape 

Source
pub trait Scrape {
    // Required method
    fn elem(&self) -> ElementRef<'_>;

    // Provided methods
    fn find_first(&self, selector: &Selector) -> Option<ElementRef<'_>> { ... }
    fn inner_text(&self) -> String { ... }
}

Required Methods§

Source

fn elem(&self) -> ElementRef<'_>

Gets the underlying element

Provided Methods§

Source

fn find_first(&self, selector: &Selector) -> Option<ElementRef<'_>>

Finds first element that matches selector.

Returns None if no matches are found.

Source

fn inner_text(&self) -> String

Gets texts inside the underlying element as String.

Implementations on Foreign Types§

Source§

impl Scrape for ElementRef<'_>

Source§

fn elem(&self) -> ElementRef<'_>

Implementors§