pub struct Scraper { /* private fields */ }Expand description
Main scraper orchestrator
Implementations§
Source§impl Scraper
impl Scraper
Sourcepub fn new(config: ScraperConfig) -> Result<Self>
pub fn new(config: ScraperConfig) -> Result<Self>
Create a new scraper with configuration
Sourcepub async fn scrape(&self, input: &ScraperInput) -> Result<ScraperOutput>
pub async fn scrape(&self, input: &ScraperInput) -> Result<ScraperOutput>
Scrape from the given input and return chunks
Auto Trait Implementations§
impl Freeze for Scraper
impl !RefUnwindSafe for Scraper
impl Send for Scraper
impl Sync for Scraper
impl Unpin for Scraper
impl !UnwindSafe for Scraper
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