summaryrefslogtreecommitdiff
path: root/ffxiv/lodestone-css-selectors-0.46.0/README.md
blob: da1fd4b3bdb3810054f37e23acfa9b641f932516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# lodestone-css-selectors
CSS selectors for The Lodestone. These selectors are all made for non-browser clients; they may break in various browsers
due to DOM elements being injected by the browser itself. Please test them in a parser before reporting any errors.

## Character Profile
Do note that in Firefox, some page elements are slightly different from in other browsers. Use no user agent or try the provided ones in `meta.json`.

### Character info (`profile/character.json`)
Basic character data is on the main profile page.

### Attributes (`profile/attributes.json`)
Attribute data is on the main profile page.

### Gearset (`profile/gearset.json`)
Gearset data is on the main profile page.

### Classjobs (`profile/classjob.json`)
Classjob data is on the `/class_job` endpoint.

### Mounts/Minions (`profile/minion.json` and `profile/mount.json`)
Mount and minion data are on their own `/mount` and `/minion` endpoints, and need to be scraped using a mobile user agent. With a desktop UA, the mount/minion names are
injected into the page with AJAX, and separate requests need to be made to get every single one.

### Achievements (`profile/achievements.json`)
Achievements are on the `/achievement` endpoint. Use the list selector to get the list of achievements on the page, and then get their IDs from the `href` attribute
of the link. Use the next button's selector to request the next page and scrape the next set of achievements until the href is `javascript:void(0);`.