symlink
(Benoit Gagné)
1
Hi !
First, thanks for reading and your time
I have read several threads and the doc regarding the scrape sensor but can’t seem to extract any data whatsoever from the website I am trying on.
Here is my sensor so far :
sensor:
- platform: scrape
resource: http://www.greatlakes-seaway.com/R2/jsp/R2.jsp?language=E&loc=mMaiBrdgStatus.jsp
select: "span.available:nth-of-type(7)"
I want to fetch from the last bridge in the list
Bridge Status: ThisValue
Next Arrival: ThisValue
Subsequent Arrival: ThisValue
As I understand it I am going to need 3 sensors but I am fine with it.
hsepm
(Holger)
2
I guess the problem is that the information you are looking for is not in the source of the main page.
For the bridges you want to scrape the frame:
http://www.greatlakes-seaway.com/R2/jsp/mMaiBrdgStatus.jsp?language=E
symlink
(Benoit Gagné)
3
Thanks for you input !
I tried scraping with :
sensor:
- platform: scrape
resource: http://www.greatlakes-seaway.com/R2/jsp/mMaiBrdgStatus.jsp?language=E
select: "span.available:nth-of-type(7)"
But gives me :
Mon Sep 16 2019 20:43:57 GMT-0400 (Eastern Daylight Time)
Unable to extract data from HTML