7 releases (4 breaking)

0.5.0 Oct 12, 2024
0.4.0 Jul 26, 2020
0.3.0 Jul 2, 2019
0.2.0 Jun 29, 2019
0.1.1 Oct 4, 2018

#733 in Text processing

Download history 41/week @ 2024-07-27 9/week @ 2024-09-21 152/week @ 2024-10-12 6/week @ 2024-10-19 3/week @ 2024-11-02

161 downloads per month

MIT license

57KB
1K SLoC

ci-badge docs-badge crates.io version

lodestone

Library for scraping data off of FFXIV's lodestone

Examples

Get a profile from a user id

use model::profile::Profile;
  
let profile = Profile::get(user_id).unwrap();

Search for a profile in a datacenter

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

Dependencies

~6–18MB
~222K SLoC