Crates.io | lodestone |
lib.rs | lodestone |
version | 0.5.0 |
source | src |
created_at | 2018-10-04 00:08:33.504351 |
updated_at | 2024-10-12 16:16:09.196096 |
description | A website wrapper for FFXIV's lodestone. |
homepage | |
repository | https://github.com/Roughsketch/lodestone |
max_upload_size | |
id | 87913 |
size | 58,071 |
Library for scraping data off of FFXIV's lodestone
use model::profile::Profile;
let profile = Profile::get(user_id).unwrap();
fn search_user(name: &str, dc: Option<Datacenter>) -> Result<Vec<Profile>, Error> {
let search = SearchBuilder::new().character(name);
if let Some(d) = dc {
search = search.datacenter(d);
}
search.send()
}
let profiles = SearchBuilder::new()
.character("Strawberry Custard")
.datacenter(Datacenter::Primal)
.lang(Language::English)
.grand_company(GrandCompany::Maelstrom)
.send()
.unwrap();
let strawberry = profiles.first().unwrap();