/
config.json
65 lines (65 loc) · 1.27 KB
/
config.json
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
{
"global": {
"interval": 60,
"size": 20,
"debug": true,
"storage": "file",
"host": "localhost:10001",
"port": "10001",
"fields": [
{
"field": "categories",
"content": "comics"
}
]
},
"example1": {
"url": "http://www.example1.com/",
"fields": [
{
"field": "description",
"selector": "#content img",
"attr": "src",
"format": "<img src=\"%s\" />"
},
{
"field": "title",
"selector": "#content img",
"attr": "title"
}
]
},
"example2": {
"url": "http://example2.com/",
"cooldown": 1440,
"fields": [
{
"field": "description",
"selector": "#comic > a > img",
"attr": "src",
"format": "<img src=\"%s\" />"
},
{
"field": "title",
"selector": "#comic > a > img",
"attr": "alt"
}
]
},
"example3": {
"url": "http://my.example3.com",
"validate": "description",
"fields": [
{
"field": "description",
"selector": ".feature_item .strip",
"attr": "src",
"format": "<img src=\"%s\" />"
},
{
"field": "title",
"evaluate": "return new Date().toDateString();"
}
]
}
}