Go to file
Anna 368fcfdb8c
fix: Helion -> Helions
2022-06-28 16:52:30 -04:00
src fix: Helion -> Helions 2022-06-28 16:52:30 -04:00
.gitignore chore: initial commit 2018-09-04 16:13:11 -04:00
Cargo.toml feat: update a bit 2022-06-16 10:12:13 -04:00
LICENSE chore: initial commit 2018-09-04 16:13:11 -04:00
README.md feat: update a bit 2022-06-16 10:12:13 -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);
}