Definition support.

This commit is contained in:
2019-02-12 13:04:39 +01:00
parent 70f89cc35c
commit 7569896f6b
10 changed files with 404 additions and 20 deletions

11
definitions/eniro.toml Normal file
View File

@@ -0,0 +1,11 @@
name = "eniro.se"
path = "https://gulasidorna.eniro.se/hitta:{ number }"
[[messages]]
selector = ".CompanyResultListItem h3.name > a"
[[history]]
selector = "div.PhoneNoHit div.search-info-container p"
[[history]]
selector = "div.feedback-types div.feedback-type-item"

View File

@@ -0,0 +1,5 @@
name = "konsumentinfo.se"
path = "http://konsumentinfo.se/telefonnummer/sverige/{ number }"
[[messages]]
selector = ".panel-heading > h1:nth-child(3)"

View File

@@ -0,0 +1,29 @@
name = "telefonforsaljare.nu"
path = "http://www.telefonforsaljare.nu/telefonnummer/{ number }/"
[[messages]]
selector = "#content p:nth-child(2) i"
[[history]]
selector = "#content p:nth-child(4)"
[[history]]
selector = "#content p:nth-child(5)"
[[comments]]
selector = "#kommentarer > [itemtype='http://data-vocabulary.org/Review']"
[comments.date_time]
selector = "small"
data = "attr:datetime"
kind = "date_time"
format = "%Y-%m-%d %H:%M:%S"
tz = "Europe/Stockholm"
[comments.title]
selector = "h3"
data = "inner_html"
[comments.message]
selector = "[itemprop='description']"
data = "inner_html"

View File

@@ -0,0 +1,18 @@
name = "vemringde.se"
path = "http://vemringde.se/?q={ number }"
[[messages]]
selector = "#toporganisations li"
[[comments]]
selector = "#calls ol li"
[comments.date_time]
selector = "div:nth-child(4)"
data = "inner_html"
kind = "date"
format = "%Y-%m-%d"
tz = "Europe/Stockholm"
[comments.message]
selector = "div:nth-child(3)"