kumo 0.3.4

An async web crawling framework for Rust - Scrapy for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use kumo_derive::Extract;
use serde::Serialize;

#[derive(Extract, Serialize)]
struct Book {
    #[extract(css = "h3 a", attr = "title")]
    title: String,
    #[extract(css = ".price_color")]
    price: String,
    #[extract(css = "h3 a", attr = "href")]
    href: Option<String>,
}

fn main() {}