gscholar

Crates.iogscholar
lib.rsgscholar
version0.1.0
sourcesrc
created_at2021-04-02 15:39:14.051941
updated_at2021-04-02 15:39:14.051941
descriptionThe unofficial Google Scholar API
homepage
repositoryhttps://github.com/L04DB4L4NC3R/scholar
max_upload_size
id377803
size48,405
Angad Sharma (L04DB4L4NC3R)

documentation

README

Scholar

scrape google scholar results

let sc = scholar::ScholarArgs{
    query: "machine-learning",
    cite_id: None,
    from_year: Some(2018),
    to_year: Some(2021),
    sort_by: Some(0),
    cluster_id: None,
    lang: Some("en"),
    lang_limit: None,
    limit: Some(3),
    offset: Some(0),
    adult_filtering: None,
    include_similar_results: None,
    include_citations: None,
};

let client = scholar::init_client();
match client.scrape_scholar(&sc).await {
    Ok(result) => assert_eq!(result.len(), 3),
    Err(_e) => assert_eq!(true, false),
};
Commit count: 18

cargo fmt