Expand description
§spider-util
Utility types and traits for the spider-lib framework.
§Example
ⓘ
use spider_util::{request::Request, item::ScrapedItem};
use url::Url;
let url = Url::parse("https://example.com").unwrap();
let request = Request::new(url);
#[spider_macro::scraped_item]
struct Article {
title: String,
content: String,
}Modules§
- bloom_
filter - Bloom Filter Module
- error
- Custom error types for the
spider-coreframework. - item
- Data structures for scraped items in
spider-lib. - request
- Data structures for representing HTTP requests in
spider-lib. - response
- Data structures and utilities for handling HTTP responses in
spider-lib. - response_
type - Response types for the spider-lib framework.
- selector_
cache - Selector Cache Module
- stream_
response - Stream response implementation for memory-efficient web scraping.
- utils
- Utility functions for the
spider-libframework.