pub struct BatchScrapeOptions {Show 15 fields
pub formats: Option<Vec<ScrapeFormats>>,
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 mobile: Option<bool>,
pub skip_tls_verification: Option<bool>,
pub timeout: Option<u32>,
pub json_options: Option<JsonOptions>,
pub actions: Option<Vec<Action>>,
pub location: Option<LocationOptions>,
pub remove_base64_images: Option<bool>,
pub block_ads: Option<bool>,
pub proxy: Option<String>,
}Fields§
§formats: Option<Vec<ScrapeFormats>>Content formats to extract
only_main_content: Option<bool>Extract only the main content, filtering out navigation, footers, etc.
HTML tags to specifically include in extraction
HTML tags to exclude from extraction
headers: Option<HashMap<String, String>>Additional HTTP headers to use when loading the page.
wait_for: Option<u32>Time in milliseconds to wait for dynamic content to load
mobile: Option<bool>Use mobile viewport
skip_tls_verification: Option<bool>Skip TLS certificate verification
timeout: Option<u32>Maximum time in milliseconds to wait for the page to load
json_options: Option<JsonOptions>JSON options for structured data extraction
actions: Option<Vec<Action>>List of actions to perform before scraping
location: Option<LocationOptions>Location settings for scraping
remove_base64_images: Option<bool>Remove base64 encoded images from output
block_ads: Option<bool>Block ads during page loading
proxy: Option<String>Proxy configuration to use (values: “none”, “basic”, “residential”)
Trait Implementations§
Source§impl Clone for BatchScrapeOptions
impl Clone for BatchScrapeOptions
Source§fn clone(&self) -> BatchScrapeOptions
fn clone(&self) -> BatchScrapeOptions
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 BatchScrapeOptions
impl Debug for BatchScrapeOptions
Source§impl Default for BatchScrapeOptions
impl Default for BatchScrapeOptions
Source§impl<'de> Deserialize<'de> for BatchScrapeOptions
impl<'de> Deserialize<'de> for BatchScrapeOptions
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<BatchScrapeOptions> for ScrapeOptions
impl From<BatchScrapeOptions> for ScrapeOptions
Source§fn from(options: BatchScrapeOptions) -> Self
fn from(options: BatchScrapeOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchScrapeOptions
impl PartialEq for BatchScrapeOptions
Source§impl Serialize for BatchScrapeOptions
impl Serialize for BatchScrapeOptions
impl Eq for BatchScrapeOptions
impl StructuralPartialEq for BatchScrapeOptions
Auto Trait Implementations§
impl Freeze for BatchScrapeOptions
impl RefUnwindSafe for BatchScrapeOptions
impl Send for BatchScrapeOptions
impl Sync for BatchScrapeOptions
impl Unpin for BatchScrapeOptions
impl UnwindSafe for BatchScrapeOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.