Skip to content

Commit 253afc6

Browse files
committed
big regex
1 parent 566b350 commit 253afc6

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.15.0",
2+
"version": "0.16.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/achievements.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"selector": ".ldst__achievement > ul:nth-child(3)"
44
},
55
"LIST_NEXT_BUTTON": {
6-
"selector": "ul.btn__pager:nth-child(2) > li:nth-child(4) > a:nth-child(1)"
6+
"selector": "ul.btn__pager:nth-child(2) > li:nth-child(4) > a:nth-child(1)",
7+
"attribute": "href"
78
},
89
"ID": {
910
"selector": ".entry__achievement",
11+
"attribute": "href",
1012
"regex": "/lodestone/character/\\d*/achievement/detail/(?P<ID>\\d*)/"
1113
},
1214
"TIME": {

profile/character.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,35 @@
88
},
99
"AVATAR": {
1010
"selector": ".frame__chara__face > img:nth-child(1)",
11-
"attribute": "src"
11+
"attribute": "src"
1212
},
1313
"BIO": {
1414
"selector": ".character__selfintroduction"
1515
},
1616
"FREE_COMPANY": {
1717
"NAME": {
1818
"selector": ".character__freecompany__name > h4:nth-child(2) > a:nth-child(1)",
19+
"attribute": "href",
1920
"regex": "/lodestone/freecompany/(?P<ID>.+)/"
2021
},
2122
"ICON_LAYERS": {
2223
"BOTTOM": {
2324
"selector": "div.character__freecompany__crest > div > img:nth-child(1)",
24-
"attribute": "src"
25+
"attribute": "src"
2526
},
2627
"MIDDLE": {
2728
"selector": "div.character__freecompany__crest > div > img:nth-child(1)",
28-
"attribute": "src"
29+
"attribute": "src"
2930
},
3031
"TOP": {
3132
"selector": "div.character__freecompany__crest > div > img:nth-child(1)",
32-
"attribute": "src"
33+
"attribute": "src"
3334
}
3435
}
3536
},
3637
"GRAND_COMPANY": {
37-
"selector": "div.character-block:nth-child(4) > div:nth-child(2) > p:nth-child(2)"
38+
"selector": "div.character-block:nth-child(4) > div:nth-child(2) > p:nth-child(2)",
39+
"regex": "(?P<Name>\\w* \\w*) / \\w* (?P<Rank>.*)"
3840
},
3941
"GUARDIAN_DEITY": {
4042
"selector": "p.character-block__name:nth-child(4)"
@@ -47,25 +49,26 @@
4749
},
4850
"PORTRAIT": {
4951
"selector": ".js__image_popup > img:nth-child(1)",
50-
"attribute": "src"
52+
"attribute": "src"
5153
},
5254
"PVP_TEAM": {
5355
"NAME": {
5456
"selector": ".character__pvpteam__name > h4:nth-child(2) > a:nth-child(1)",
57+
"attribute": "href",
5558
"regex": "/lodestone/pvpteam/(?P<ID>.+)/"
5659
},
5760
"ICON_LAYERS": {
5861
"BOTTOM": {
5962
"selector": "div.character__pvpteam__crest__image > div > img:nth-child(1)",
60-
"attribute": "src"
63+
"attribute": "src"
6164
},
6265
"MIDDLE": {
6366
"selector": "div.character__pvpteam__crest__image > div > img:nth-child(2)",
64-
"attribute": "src"
67+
"attribute": "src"
6568
},
6669
"TOP": {
6770
"selector": "div.character__pvpteam__crest__image > div > img:nth-child(3)",
68-
"attribute": "src"
71+
"attribute": "src"
6972
}
7073
}
7174
},
@@ -74,12 +77,13 @@
7477
"regex": "(?P<Race>.*)<br\\/>(?P<Tribe>.*) \\/ (?P<Gender>.)"
7578
},
7679
"SERVER": {
77-
"selector": "p.frame__chara__world:nth-child(3)"
80+
"selector": "p.frame__chara__world:nth-child(3)",
81+
"regex": "(?P<World>\\w*)[\\s\\x{00A0}]\\((?P<DC>\\w*)\\)"
7882
},
7983
"TITLE": {
8084
"selector": ".frame__chara__title"
8185
},
8286
"TOWN": {
8387
"selector": "div.character-block:nth-child(3) > div:nth-child(2) > p:nth-child(2)"
8488
}
85-
}
89+
}

0 commit comments

Comments
 (0)