#wikipedia

wikipedia_liefland

Access wikipedia articles from Rust

1 unstable release

0.4.0 Oct 4, 2023

#36 in #wikipedia

Custom license

62KB
1.5K SLoC

wikipedia-rs

This is an updated - nonmaintained - fork of seppo0010/wikipedia-rs, see MR https://github.com/seppo0010/wikipedia-rs/pull/9

Build Status

Access wikipedia articles from Rust.

The crate is called wikipedia and you can depend on it via cargo:

[dependencies]
wikipedia = "0.3.1"

Examples

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"));

Documentation

https://seppo0010.github.io/wikipedia-rs/


lib.rs:

Access wikipedia articles from Rust.

Examples

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"));

Dependencies

~0.5–12MB
~141K SLoC