-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.json
35 lines (35 loc) · 1.17 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
{
"saveDownvoted": true,
"visitInterval": 300,
"requestInterval": 5,
"subreddits": [
"askreddit",
"worldnews"
],
"keywords": [
"work",
"china",
"bad"
],
"xpath": {
"urlDriverLoad": [
"//button[@type='submit'][contains(text(), 'I Agree')]"
],
"urlXPath": "//a[contains(@data-click-id, 'comments')]",
"threadDriverLoad": [
"//button[@type='submit'][contains(text(), 'I Agree')]",
"//button[contains(text(), 'View all')]"
],
"threadDriverLoadComments": [
"//*[contains(@id, 'moreComments')]",
"//div/button/i[contains(@class, 'icon-expand')]"
],
"threadDriverContinueThread": "//span[text()='Continue this thread']",
"content": {
"username": "//div[contains(@class, 'Comment')]/div[2]/div[1]/div/a/text()",
"score": "//div[contains(@class, 'Comment')]/div[2]/div[1]/span[1]/text()",
"timestamp": "//div[contains(@class, 'Comment')]/div[2]/div[1]/a/span/text()",
"quote": "//div[contains(@class, 'Comment')]/div[2]/div[2]/div//p/text()"
}
}
}