Trait reqwest_scraper::ScraperResponse

source ·
pub trait ScraperResponse {
    // Required methods
    fn jsonpath<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Json>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn css_selector<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Html>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn xpath<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<XHtml>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Support extended traits of jsonpath, css selector, and xpath

Required Methods§

source

fn jsonpath<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Json>> + Send + 'async_trait>>
where Self: 'async_trait,

Use jsonpath to select the response body

source

fn css_selector<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Html>> + Send + 'async_trait>>
where Self: 'async_trait,

Use CSS selector to select the response body

source

fn xpath<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<XHtml>> + Send + 'async_trait>>
where Self: 'async_trait,

Use XPath to select the response body

Implementors§