-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemconfig.py
More file actions
85 lines (85 loc) · 2.54 KB
/
Copy pathemconfig.py
File metadata and controls
85 lines (85 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
def config(section_id):
"""Returns the configuration for a given section ID."""
if section_id == 1:
return {
"title": [
"div.post-title-custom h1",
"div.post-title h1",
"div#manga-title h1"
],
"type": [
"Type",
"ประเภท"
],
"genre": [
"Genre(s)",
"ประเภทมังงะ",
"หมวด",
"หมวดหมู่"
],
"status": [
"Status",
"สถานะ",
"สถานะมังงะ"
],
"chapterlist": [
"div.listing-chapters_wrap ul li",
"div#chapterlist ul li",
"ul.main li",
"ul#chapterList"
],
"cover": ["div.summary_image a img"]
}
elif section_id in (2, 3, 4):
return {
"title": [
"h1.entry-title",
"div.series-title h2"
],
"type": [
"div.fmed:has(b:-soup-contains('ประเภทเรื่อง')) span",
".series-infoz .type",
"td:has(> b:-soup-contains('Type')) + td",
"span.btct.ct-type"
],
"genre": [
"div.wd-full span.mgen a",
".series-genres a",
"div.seriestugenre a",
"ul.mgen.genre li a"
],
"status": [
"div.fmed:has(b:-soup-contains('สถานะ')) i",
".series-infoz .status",
"td:has(> b:-soup-contains('Status')) + td",
"span.btct.ct-status"
],
"chapterlist": [
"div.eplister ul li",
".series-chapterlist li"
],
"cover": [
"div.thumb img",
".series-thumb img"
]
}
elif section_id == 6:
return {
"title": [
"h1.ttl",
],
"type": [
],
"genre": [
"p:has(b:-soup-contains('หมวดหมู่')) a",
],
"status": [
"p:has(b:-soup-contains('สถานะ'))",
],
"chapterlist": [
"ul.lst > li",
],
"cover": [
".cvr_ara img",
]
}