Derive Macro scraper_macros::Scraper
source · #[derive(Scraper)]
{
// Attributes available to this derive:
#[scrape]
}
Expand description
The macro which converts a struct or tuple into one which is able to be scraped easily.
An example of this would be here:
#[derive(Scraper)]
pub struct RedditListItem {
#[scrape(xpath = r#"//a[@data-click-id="body"]/@href"#)]
pub urls: Vec<String>
}