pub struct CrawlScrapeOptions {
pub formats: Option<Vec<CrawlScrapeFormats>>,
pub only_main_content: Option<bool>,
pub include_tags: Option<Vec<String>>,
pub exclude_tags: Option<Vec<String>>,
pub headers: Option<HashMap<String, String>>,
pub wait_for: Option<u32>,
pub timeout: Option<u32>,
}Fields§
§formats: Option<Vec<CrawlScrapeFormats>>Formats to extract from the page. (default: [ Markdown ])
only_main_content: Option<bool>Only extract the main content of the page, excluding navigation and other miscellaneous content. (default: true)
HTML tags to exclusively include.
For example, if you pass div, you will only get content from <div>s and their children.
HTML tags to exclude.
For example, if you pass img, you will never get image URLs in your results.
headers: Option<HashMap<String, String>>Additional HTTP headers to use when loading the page.
wait_for: Option<u32>Amount of time to wait after loading the page, and before grabbing the content, in milliseconds. (default: 0)
timeout: Option<u32>Timeout before returning an error, in milliseconds. (default: 60000)
Trait Implementations§
Source§impl Clone for CrawlScrapeOptions
impl Clone for CrawlScrapeOptions
Source§fn clone(&self) -> CrawlScrapeOptions
fn clone(&self) -> CrawlScrapeOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrawlScrapeOptions
impl Debug for CrawlScrapeOptions
Source§impl Default for CrawlScrapeOptions
impl Default for CrawlScrapeOptions
Source§fn default() -> CrawlScrapeOptions
fn default() -> CrawlScrapeOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CrawlScrapeOptions
impl<'de> Deserialize<'de> for CrawlScrapeOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CrawlScrapeOptions> for ScrapeOptions
impl From<CrawlScrapeOptions> for ScrapeOptions
Source§fn from(value: CrawlScrapeOptions) -> Self
fn from(value: CrawlScrapeOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CrawlScrapeOptions
impl RefUnwindSafe for CrawlScrapeOptions
impl Send for CrawlScrapeOptions
impl Sync for CrawlScrapeOptions
impl Unpin for CrawlScrapeOptions
impl UnwindSafe for CrawlScrapeOptions
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