pub struct Scraper;Implementations§
Source§impl Scraper
impl Scraper
pub async fn get_session_cached_urls( &self, session_id: &str, ) -> Result<Vec<String>, BrightDataError>
pub async fn get_cached_urls_by_domain( &self, session_id: &str, domain: &str, ) -> Result<Vec<String>, BrightDataError>
pub async fn clear_url_cache( &self, url: &str, session_id: &str, ) -> Result<(), BrightDataError>
pub async fn clear_session_cache( &self, session_id: &str, ) -> Result<u32, BrightDataError>
pub async fn get_cache_stats(&self) -> Result<Value, BrightDataError>
pub async fn get_cache_summary( &self, session_id: &str, ) -> Result<Value, BrightDataError>
pub async fn test_connectivity_with_cache( &self, ) -> Result<String, BrightDataError>
Sourcepub async fn test_connectivity(&self) -> Result<String, BrightDataError>
pub async fn test_connectivity(&self) -> Result<String, BrightDataError>
Test BrightData connectivity
Sourcepub async fn is_url_cached(
&self,
session_id: &str,
url: &str,
) -> Result<bool, BrightDataError>
pub async fn is_url_cached( &self, session_id: &str, url: &str, ) -> Result<bool, BrightDataError>
Check if URL is cached
Sourcepub async fn batch_cache_urls(
&self,
session_id: &str,
url_data: Vec<(String, Value)>,
) -> Result<Vec<String>, BrightDataError>
pub async fn batch_cache_urls( &self, session_id: &str, url_data: Vec<(String, Value)>, ) -> Result<Vec<String>, BrightDataError>
Batch cache multiple URLs (useful for bulk operations)
Trait Implementations§
Source§impl Tool for Scraper
impl Tool for Scraper
fn name(&self) -> &str
fn description(&self) -> &str
fn input_schema(&self) -> Value
fn execute<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, BrightDataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_internal<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, BrightDataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_legacy<'life0, 'async_trait>(
&'life0 self,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, BrightDataError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
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