Train status from webpage (not RSS)
Unbored last edited by Unbored
Looking for some guidance. Is there a module that reads a table on a webpage and then rotates the statuses like the new feed? If not, I would settle for just updating the status.
There is a commuter train that runs from Virginia into Wash., DC. called the VRE. Their site has a RSS feed, but it doesn’t really track individual trains. The status that I am looking to pull is on this site: http://www.vre.org/service/status/
I haven’t read up on iframes and I am pretty sure that I am not using iframes in my current build. I guess I could, if that is required.
It is late in the day and the number of trains are starting to fade from the webpage, so here is what it looks like in case there are no trains listed when you look.
The code on the page looks like this:
<div> <h3>Live Tracking</h3> (Status Tracked via GPS) <p>Train Status as of Thursday, June 1, 2017 - 7:44 PM</p> <table> <thead> <tr> <td><strong>Train Number</strong></td> <td><strong>Status</strong></td> </tr> </thead> <tbody> <tr> <td>Loading...</td> </tr> </tbody> </table> <div> </div> </div>