From 52801b4de1d63cd01191acf7fcee137977140ec0 Mon Sep 17 00:00:00 2001 From: lexicade Date: Fri, 27 Jan 2023 21:06:30 +0000 Subject: Project init --- ffxiv/lodestone-css-selectors-0.46.0/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ffxiv/lodestone-css-selectors-0.46.0/README.md (limited to 'ffxiv/lodestone-css-selectors-0.46.0/README.md') 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);`. -- cgit v1.2.3