Crate scraper_macros

source ·
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>
}

Derive Macros

The macro which converts a struct or tuple into one which is able to be scraped easily.