Go to file
Anna 03ad1075ab chore: update dependencies 2020-07-23 14:42:47 -04:00
src chore: update dependencies 2020-07-23 14:42:47 -04:00
.gitignore chore: initial commit 2018-09-04 16:13:11 -04:00
Cargo.toml chore: update dependencies 2020-07-23 14:42:47 -04:00
LICENSE chore: initial commit 2018-09-04 16:13:11 -04:00
README.md docs: add example 2018-09-04 16:19:01 -04:00

README.md

lodestone_scraper

A Lodestone client library.

use ffxiv_types::World;
use lodestone_scraper::LodestoneScraper;

fn main() {
  let ls = LodestoneScraper::default();

  let search = ls.character_search()
    .name("Duvivi Duvi")
    .world(World::Adamantoise)
    .send()
    .unwrap();
  let character = ls.character(search.results[0].id).unwrap();

  assert_eq!("Duvivi Duvi", character.name);
  assert_eq!(World::Adamantoise, character.world);
}