diff options
author | lexicade <jasonnlelong@gmail.com> | 2023-01-27 21:06:30 +0000 |
---|---|---|
committer | lexicade <jasonnlelong@gmail.com> | 2023-01-27 21:06:30 +0000 |
commit | 52801b4de1d63cd01191acf7fcee137977140ec0 (patch) | |
tree | 08271a1f1e3e8060486b6651c67c9934867c648e /ffxiv/lodestone-css-selectors-0.46.0/README.md | |
parent | 8df873808c86805624851356f5dea76ec621de23 (diff) |
Diffstat (limited to 'ffxiv/lodestone-css-selectors-0.46.0/README.md')
-rw-r--r-- | ffxiv/lodestone-css-selectors-0.46.0/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ffxiv/lodestone-css-selectors-0.46.0/README.md b/ffxiv/lodestone-css-selectors-0.46.0/README.md new file mode 100644 index 0000000..da1fd4b --- /dev/null +++ b/ffxiv/lodestone-css-selectors-0.46.0/README.md @@ -0,0 +1,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);`. |