Advertisement
Creativehacking

Scrape mashie matsedel

May 24th, 2022
1,333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.22 KB | None | 0 0
  1. sensor:
  2.   - platform: scrape
  3.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  4.     name: Lunch idag Lustigkulla förskola
  5.     select: ".app-daymenu-name"
  6.     scan_interval: 15000
  7.   - platform: scrape
  8.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  9.     name: Lunch idag Lustigkulla förskola måndag
  10.     select: "body > div#app-page:nth-child(4) > div.panel-group:nth-child(4) > div.panel.panel-default.app-default:nth-child(2) > div.list-group:nth-child(2) > div.list-group-item.list-group-item-menu > div.app-daymenu-name:nth-child(3)"
  11.     scan_interval: 15000
  12.   - platform: scrape
  13.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  14.     name: Lunch idag Lustigkulla förskola tisdag
  15.     select: "body > div#app-page:nth-child(4) > div.panel-group:nth-child(4) > div.panel.panel-default.app-default:nth-child(3) > div.list-group:nth-child(2) > div.list-group-item.list-group-item-menu > div.app-daymenu-name:nth-child(3)"
  16.     scan_interval: 15000
  17.   - platform: scrape
  18.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  19.     name: Lunch idag Lustigkulla förskola onsdag
  20.     select: "body > div#app-page:nth-child(4) > div.panel-group:nth-child(4) > div.panel.panel-default.app-default:nth-child(4) > div.list-group:nth-child(2) > div.list-group-item.list-group-item-menu > div.app-daymenu-name:nth-child(3)"
  21.     scan_interval: 15000
  22.   - platform: scrape
  23.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  24.     name: Lunch idag Lustigkulla förskola torsdag
  25.     select: "body > div#app-page:nth-child(4) > div.panel-group:nth-child(4) > div.panel.panel-default.app-default:nth-child(5) > div.list-group:nth-child(2) > div.list-group-item.list-group-item-menu > div.app-daymenu-name:nth-child(3)"
  26.     scan_interval: 15000
  27.   - platform: scrape
  28.     resource: https://mpi.mashie.com/public/app/Knivsta%20Kommun/44d28ec0
  29.     name: Lunch idag Lustigkulla förskola fredag
  30.     select: "body > div#app-page:nth-child(4) > div.panel-group:nth-child(4) > div.panel.panel-default.app-default:nth-child(6) > div.list-group:nth-child(2) > div.list-group-item.list-group-item-menu > div.app-daymenu-name:nth-child(3)"
  31.     scan_interval: 15000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement