rtrend 0.1.7

Unofficial API for interacting with Google Trend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rtrend::{Client, Country, Keywords, Lang, Property, Category,RelatedQueries};

fn main() {
    let keywords = Keywords::new(vec!["Pasta"]);
    let country = Country::IT;

    // Set response lang to french and search on Google Image
    let lang = Lang::FR;
    let property = Property::Web;

    let client = Client::new(keywords, country)
        .with_lang(lang)
        .with_property(property)
        .with_category(Category::FoodAndDrink)
        .build();
    let related_queries = RelatedQueries::new(client).get();
    println!("{}", related_queries);
}