1 个不稳定版本
0.1.0 | 2021年4月2日 |
---|
#17 in #books
16KB
327 行
学者
抓取 Google Scholar 结果
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),
};
依赖项
~10–22MB
~350K SLoC