I want to post the status of a low water crossing on our neighborhood website. It frequently floods during heavy rains.
There is an XML file with the status at https://www.atxflood...ajax_genxml.php , but there are 1874 crossings listed.
The "comment" for ID=648 is all I need. Is there some way I can extract just that field with an html query?
Thanks.
#1
Posted 19 April 2016 - 09:43 PM
#2
Posted 26 April 2016 - 11:12 AM
That is difficult to say without inspecting the php source. If you are a developer, you could use any xml parser, download the xml regularily, (E.g. once every hour to avoid DOSing the server), then use the API for the parser you are using to find your marker with the correct id and getting the comment, storing it, so your neighbourhood website can get the comment.
for this to work realiably you will need a small server that is online 24/7, and start your little tool on that server. Your neighbourhood website will then ask your little server for the current status for the water crossing, and will get data that is maximum 1 hour old.
#3
Posted 27 April 2016 - 04:07 PM
It's been years since I developed anything on the web, and that wasn't much. Now that I'm retired maybe I'll get back into it.
Thanks for pointing me in a possible direction.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users