Skip to content

Commit b8e0b17

Browse files
committed
all the search stuff
1 parent 85c745c commit b8e0b17

File tree

8 files changed

+193
-1
lines changed

8 files changed

+193
-1
lines changed

freecompany/members.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
"regex": "(?P<World>\\w*)[\\s\\x{00A0}]\\((?P<DC>\\w*)\\)"
3232
}
3333
},
34+
"PAGE_INFO": {
35+
"selector": "ul.btn__pager:nth-child(4) > li:nth-child(3)",
36+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
37+
},
3438
"LIST_NEXT_BUTTON": {
3539
"selector": "ul.btn__pager:nth-child(4) > li:nth-child(4) > a:nth-child(1)",
3640
"attribute": "href"

linkshell/crossworld/members.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"regex": "(?P<World>\\w*)[\\s\\x{00A0}]\\((?P<DC>\\w*)\\)"
3333
}
3434
},
35+
"PAGE_INFO": {
36+
"selector": "ul.btn__pager:nth-child(5) > li:nth-child(3)",
37+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
38+
},
3539
"LIST_NEXT_BUTTON": {
3640
"selector": "ul.btn__pager:nth-child(5) > li:nth-child(4) > a:nth-child(1)",
3741
"attribute": "href"

linkshell/members.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"regex": "(?P<World>\\w*)[\\s\\x{00A0}]\\((?P<DC>\\w*)\\)"
3333
}
3434
},
35+
"PAGE_INFO": {
36+
"selector": "ul.btn__pager:nth-child(5) > li:nth-child(3)",
37+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
38+
},
3539
"LIST_NEXT_BUTTON": {
3640
"selector": "ul.btn__pager:nth-child(5) > li:nth-child(4) > a:nth-child(1)",
3741
"attribute": "href"

meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.25.0",
2+
"version": "0.26.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
}

search/cwls.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"ENTRIES_CONTAINER": {
3+
"selector": ".ldst__window"
4+
},
5+
"ENTRY": {
6+
"ROOT": {
7+
"selector": "div.entry"
8+
},
9+
"ID": {
10+
"selector": ".entry__link--line",
11+
"attribute": "href",
12+
"regex": "/lodestone/linkshell/(?P<ID>\\d*)/"
13+
},
14+
"NAME": {
15+
"selector": ".entry__name"
16+
},
17+
"DC": {
18+
"selector": ".entry__world"
19+
},
20+
"ACTIVE_MEMBERS": {
21+
"selector": ".entry__linkshell__member > div > span"
22+
}
23+
},
24+
"PAGE_INFO": {
25+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(3)",
26+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
27+
},
28+
"LIST_NEXT_BUTTON": {
29+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(4) > a:nth-child(1)",
30+
"attribute": "href"
31+
},
32+
"NO_RESULTS_FOUND": {
33+
"selector": ".parts__zero"
34+
}
35+
}

search/freecompany.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"ENTRIES_CONTAINER": {
3+
"selector": ".ldst__window"
4+
},
5+
"ENTRY": {
6+
"ROOT": {
7+
"selector": "div.entry"
8+
},
9+
"CREST_LAYERS": {
10+
"BOTTOM": {
11+
"selector": ".entry__freecompany__crest__image > img:nth-child(1)",
12+
"attribute": "src"
13+
},
14+
"MIDDLE": {
15+
"selector": ".entry__freecompany__crest__image > img:nth-child(2)",
16+
"attribute": "src"
17+
},
18+
"TOP": {
19+
"selector": ".entry__freecompany__crest__image > img:nth-child(3)",
20+
"attribute": "src"
21+
}
22+
},
23+
"ID": {
24+
"selector": ".entry__block",
25+
"attribute": "href",
26+
"regex": "/lodestone/freecompany/(?P<ID>\\d*)/"
27+
},
28+
"NAME": {
29+
"selector": ".entry__name"
30+
},
31+
"SERVER": {
32+
"selector": ".entry__world"
33+
},
34+
"ACTIVE": {
35+
"selector": ".entry__freecompany__fc-active:nth-of-type(1)",
36+
"regex": "Active:[\\s\\x{00A0}](?P<State>\\w*)"
37+
},
38+
"ACTIVE_MEMBERS": {
39+
"selector": ".entry__freecompany__fc-member"
40+
},
41+
"RECRUITMENT_OPEN": {
42+
"selector": ".entry__freecompany__fc-active:nth-of-type(2)",
43+
"regex": "Recruitment:[\\s\\x{00A0}](?P<State>\\w*)"
44+
},
45+
"ESTATE_BUILT": {
46+
"selector": ".entry__freecompany__fc-housing"
47+
},
48+
"FORMED": {
49+
"selector": ".entry__freecompany__fc-day > script",
50+
"regex": ".*ldst_strftime\\((?P<Timestamp>\\d*)"
51+
}
52+
},
53+
"PAGE_INFO": {
54+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(3)",
55+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
56+
},
57+
"LIST_NEXT_BUTTON": {
58+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(4) > a:nth-child(1)",
59+
"attribute": "href"
60+
},
61+
"NO_RESULTS_FOUND": {
62+
"selector": ".parts__zero"
63+
}
64+
}

search/linkshell.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"ENTRIES_CONTAINER": {
3+
"selector": ".ldst__window"
4+
},
5+
"ENTRY": {
6+
"ROOT": {
7+
"selector": "div.entry"
8+
},
9+
"ID": {
10+
"selector": ".entry__link--line",
11+
"attribute": "href",
12+
"regex": "/lodestone/linkshell/(?P<ID>\\d*)/"
13+
},
14+
"NAME": {
15+
"selector": ".entry__name"
16+
},
17+
"SERVER": {
18+
"selector": ".entry__world"
19+
},
20+
"ACTIVE_MEMBERS": {
21+
"selector": ".entry__linkshell__member > div > span"
22+
}
23+
},
24+
"PAGE_INFO": {
25+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(3)",
26+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
27+
},
28+
"LIST_NEXT_BUTTON": {
29+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(4) > a:nth-child(1)",
30+
"attribute": "href"
31+
},
32+
"NO_RESULTS_FOUND": {
33+
"selector": ".parts__zero"
34+
}
35+
}

search/pvpteam.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"ENTRIES_CONTAINER": {
3+
"selector": ".ldst__window"
4+
},
5+
"ENTRY": {
6+
"ROOT": {
7+
"selector": "div.entry"
8+
},
9+
"CREST_LAYERS": {
10+
"BOTTOM": {
11+
"selector": ".entry__pvpteam__search__crest__image > img:nth-child(1)",
12+
"attribute": "src"
13+
},
14+
"MIDDLE": {
15+
"selector": ".entry__pvpteam__search__crest__image > img:nth-child(2)",
16+
"attribute": "src"
17+
},
18+
"TOP": {
19+
"selector": ".entry__pvpteam__search__crest__image > img:nth-child(3)",
20+
"attribute": "src"
21+
}
22+
},
23+
"ID": {
24+
"selector": ".entry__block",
25+
"attribute": "href",
26+
"regex": "/lodestone/pvpteam/(?P<ID>\\d*)/"
27+
},
28+
"NAME": {
29+
"selector": ".entry__name"
30+
},
31+
"DC": {
32+
"selector": ".entry__world"
33+
}
34+
},
35+
"PAGE_INFO": {
36+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(3)",
37+
"regex": "Page (?P<CurrentPage>[0-9*]) of (?P<NumPages>[0-9*])"
38+
},
39+
"LIST_NEXT_BUTTON": {
40+
"selector": "ul.btn__pager:nth-child(6) > li:nth-child(4) > a:nth-child(1)",
41+
"attribute": "href"
42+
},
43+
"NO_RESULTS_FOUND": {
44+
"selector": ".parts__zero"
45+
}
46+
}

0 commit comments

Comments
 (0)