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§
sourcefn jsonpath<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Json>> + Send + 'async_trait>>where
Self: 'async_trait,
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