Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roughsketch/lodestone
Library for scraping data off of FFXIV's lodestone
https://github.com/roughsketch/lodestone
ffxiv library lodestone rust
Last synced: 24 days ago
JSON representation
Library for scraping data off of FFXIV's lodestone
- Host: GitHub
- URL: https://github.com/roughsketch/lodestone
- Owner: Roughsketch
- License: mit
- Created: 2018-07-31T00:56:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-12T16:12:53.000Z (26 days ago)
- Last Synced: 2024-10-12T20:13:58.747Z (26 days ago)
- Topics: ffxiv, library, lodestone, rust
- Language: Rust
- Size: 34.2 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![ci-badge][]][ci] [![docs-badge][]][docs] [![crates.io version]][crates.io link]
# lodestone
Library for scraping data off of FFXIV's lodestone# Examples
## Get a profile from a user id
```rust
use model::profile::Profile;
let profile = Profile::get(user_id).unwrap();
```## Search for a profile in a datacenter
```rust
fn search_user(name: &str, dc: Option) -> Result, Error> {
let search = SearchBuilder::new().character(name);
if let Some(d) = dc {
search = search.datacenter(d);
}
search.send()
}
```## A more targeted search
```rust
let profiles = SearchBuilder::new()
.character("Strawberry Custard")
.datacenter(Datacenter::Primal)
.lang(Language::English)
.grand_company(GrandCompany::Maelstrom)
.send()
.unwrap();let strawberry = profiles.first().unwrap();
```[ci]: https://travis-ci.org/Roughsketch/lodestone
[ci-badge]: https://img.shields.io/travis/Roughsketch/lodestone.svg?style=flat-square
[crates.io link]: https://crates.io/crates/lodestone
[crates.io version]: https://img.shields.io/crates/v/lodestone.svg?style=flat-square
[docs]: https://docs.rs/lodestone
[docs-badge]: https://img.shields.io/badge/docs-online-5023dd.svg?style=flat-square