pub trait ScrapeEngine: Send + Sync {
// Required method
fn scrape<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ScrapeRequest,
) -> Pin<Box<dyn Future<Output = Result<RawScrapeResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for scraping engines
Required Methods§
Sourcefn scrape<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ScrapeRequest,
) -> Pin<Box<dyn Future<Output = Result<RawScrapeResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn scrape<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ScrapeRequest,
) -> Pin<Box<dyn Future<Output = Result<RawScrapeResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Scrape a URL and return raw results