forked from ruippeixotog/scala-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.conf
44 lines (38 loc) · 937 Bytes
/
application.conf
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
test-extractors {
simple = { query: "#footer" }
attr = { query: "meta[charset]", attr: "charset" }
date-format = { query: "#date", date-format: "yyyy-MM-dd" }
date-formats = { query: "#date", date-formats: ["MMM dd, yyyy", "yyyy-MM-dd"] }
regex-format = { query: "section", regex-format: "Section 2 h\\d" }
}
test-validators {
simple = {
select: { query: "#footer" }
match: "No copyright \\d*"
}
attr = {
select: { query: "meta[charset]", attr: "not_charset" }
match: "..*"
}
with-result = {
select: { query: "#footer" }
match: "No copyright \\d*"
status: 5
}
exists = {
select: { query: "#notexists" }
exists: false
status: 0.25
}
exists2 = {
select: { query: "#footer" }
exists: false
status: 0.25
}
inverted = {
select: { query: "#footer" }
match: "This text doesn't exist in the footer"
invert: true
status: "2013-03-03"
}
}