Derive Macro scraper_macros::Scraper [−][src]
#[derive(Scraper)] { // Attributes available to this derive: #[scrape] }
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> }