Dumpstats scrapes the popular Dutch video website https://www.dumpert.nl for statistics on video’s, posted comments and the kudos of those comments. I wanted to obtain some of my personal kudos statistics from the website https://www.dumpstats.nl and did so by means of the scrape sensor.
See the code, to be added under you sensor: section in your configuration file, down below. Replace “yourDumpertNickName” with your own nickname.
- platform: scrape
name: Dumpert kudos balance
resource: https://dumpstats.nl/reaguurder/yourDumpertNickName
select: ".title"
index: 2
unit_of_measurement: Kudos
value_template: '{{ value.split(" ")[0] }}'
state_class: measurement
- platform: scrape
name: Dumpert reaguursels
resource: https://dumpstats.nl/reaguurder/yourDumpertNickName
select: ".title"
index: 3
unit_of_measurement: Reaguursels
state_class: measurement
- platform: scrape
name: Dumpert kudos negative
resource: https://dumpstats.nl/reaguurder/yourDumpertNickName
select: ".kudos_negative"
unit_of_measurement: Kudos
state_class: measurement
- platform: scrape
name: Dumpert kudos positive
resource: https://dumpstats.nl/reaguurder/yourDumpertNickName
select: ".kudos_positive"
unit_of_measurement: Kudos
state_class: measurement