pub struct ScrapeRequest {Show 15 fields
pub url: String,
pub formats: Vec<String>,
pub headers: HashMap<String, String>,
pub include_tags: Vec<String>,
pub exclude_tags: Vec<String>,
pub only_main_content: bool,
pub timeout: u64,
pub wait_for: u64,
pub remove_base64_images: bool,
pub skip_tls_verification: bool,
pub engine: String,
pub wait_for_selector: Option<String>,
pub actions: Vec<BrowserAction>,
pub screenshot: bool,
pub screenshot_format: String,
}Expand description
Main scrape request matching Firecrawl v1 schema
Fields§
§url: StringRequired: URL to scrape
formats: Vec<String>Output formats (default: [“markdown”])
headers: HashMap<String, String>Headers to send with request
CSS selectors to include
CSS selectors to exclude
only_main_content: boolExtract only main content (default: true)
timeout: u64Request timeout in milliseconds (default: 30000)
wait_for: u64Wait time before scraping in milliseconds (default: 0)
remove_base64_images: boolRemove base64 images (default: true)
skip_tls_verification: boolSkip TLS verification
engine: StringEngine to use: “auto” | “http” | “browser” (default: “auto”)
wait_for_selector: Option<String>CSS selector to wait for before scraping (browser only)
actions: Vec<BrowserAction>Browser actions to perform before scraping
screenshot: boolCapture screenshot (browser only)
screenshot_format: StringScreenshot format: “png” | “jpeg” (default: “png”)
Trait Implementations§
Source§impl Clone for ScrapeRequest
impl Clone for ScrapeRequest
Source§fn clone(&self) -> ScrapeRequest
fn clone(&self) -> ScrapeRequest
Returns a duplicate 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 ScrapeRequest
impl Debug for ScrapeRequest
Source§impl Default for ScrapeRequest
impl Default for ScrapeRequest
Source§impl<'de> Deserialize<'de> for ScrapeRequest
impl<'de> Deserialize<'de> for ScrapeRequest
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
Auto Trait Implementations§
impl Freeze for ScrapeRequest
impl RefUnwindSafe for ScrapeRequest
impl Send for ScrapeRequest
impl Sync for ScrapeRequest
impl Unpin for ScrapeRequest
impl UnsafeUnpin for ScrapeRequest
impl UnwindSafe for ScrapeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more