Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Need help with Scrape sensor for dynamic java webpage

$
0
0

@blackmesa wrote:

Hey guys,

i tried my best, but unfortunateley i am unable to scrape a simple table on that website of my local transportation service.

sensor:
  - platform: scrape
    name: "Abfahrt Nußbaumerstraße Linie"
    resource: "https://www.kvb.koeln/qr/246/"
    select: "table#qr_ergebnis tbody tr td"
    index: 0
    headers:
      User-Agent: Mozilla/5.0

My goal is to get the information on the next train departing from this station. After some research i think i am stuck because this is a dynamic webpage and the big table is loading afterwards. Is there any way to handle this kind of pages?

Hopefully someone can help. I tried it with https://try.jsoup.org/ and it seems to be right!?
Dunno whats wrong :confused:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>