Skip to content

Commit f51d20e

Browse files
committed
Add some regexes
1 parent 4e661a9 commit f51d20e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.6.0",
2+
"version": "0.7.0",
33
"userAgentDesktop": "curl/7.73.0",
44
"userAgentMobile": "Mozilla/5.0 (iPhone; CPU OS 10_15_5 (Ergänzendes Update) like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Mobile/14E304 Safari/605.1.15"
55
}

profile/character.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"selector": ".character__class_icon > img:nth-child(1)"
44
},
55
"ACTIVE_CLASSJOB_LEVEL": {
6-
"selector": ".character__class__data > p:nth-child(1)"
6+
"selector": ".character__class__data > p:nth-child(1)",
7+
"regex": "LEVEL (?P<Level>\\d*)"
78
},
89
"AVATAR": {
910
"selector": ".frame__chara__face > img:nth-child(1)"
@@ -13,7 +14,8 @@
1314
},
1415
"FREE_COMPANY": {
1516
"NAME": {
16-
"selector": ".character__freecompany__name > h4:nth-child(2) > a:nth-child(1)"
17+
"selector": ".character__freecompany__name > h4:nth-child(2) > a:nth-child(1)",
18+
"regex": "/lodestone/freecompany/(?P<ID>.+)/"
1719
},
1820
"ICON_LAYERS": {
1921
"BOTTOM": {
@@ -44,7 +46,8 @@
4446
},
4547
"PVP_TEAM": {
4648
"NAME": {
47-
"selector": ".character__pvpteam__name > h4:nth-child(2) > a:nth-child(1)"
49+
"selector": ".character__pvpteam__name > h4:nth-child(2) > a:nth-child(1)",
50+
"regex": "/lodestone/pvpteam/(?P<ID>.+)/"
4851
},
4952
"ICON_LAYERS": {
5053
"BOTTOM": {
@@ -59,7 +62,8 @@
5962
}
6063
},
6164
"RACE_CLAN_GENDER": {
62-
"selector": "div.character-block:nth-child(1) > div:nth-child(2) > p:nth-child(2)"
65+
"selector": "div.character-block:nth-child(1) > div:nth-child(2) > p:nth-child(2)",
66+
"regex": "(?P<Race>.*)<br\\/>(?P<Tribe>.*) \\/ (?P<Gender>.)"
6367
},
6468
"SERVER": {
6569
"selector": "p.frame__chara__world:nth-child(3)"

0 commit comments

Comments
 (0)