Crates.io | wikipedia_liefland |
lib.rs | wikipedia_liefland |
version | 0.4.0 |
source | src |
created_at | 2023-10-04 20:43:01.482982 |
updated_at | 2023-10-04 20:43:01.482982 |
description | Access wikipedia articles from Rust |
homepage | |
repository | https://github.com/Liefland/wikipedia-rs |
max_upload_size | |
id | 993180 |
size | 72,827 |
seppo0010/wikipedia-rs
, see MR https://github.com/seppo0010/wikipedia-rs/pull/9Access wikipedia articles from Rust.
The crate is called wikipedia
and you can depend on it via cargo:
[dependencies]
wikipedia = "0.3.1"
extern crate wikipedia;
let wiki = wikipedia::Wikipedia::<wikipedia::http::default::Client>::default();
let page = wiki.page_from_title("Club Atletico River Plate".to_owned());
let content = page.get_content().unwrap();
assert!(content.contains("B Nacional"));