Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Extract data from web

html query

  • Please log in to reply

#1
ceraymond

ceraymond

    New Member

  • Member
  • Pip
  • 2 posts

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.


  • 0

Advertisements


#2
fjank

fjank

    New Member

  • Member
  • Pip
  • 7 posts

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. 


  • 0

#3
ceraymond

ceraymond

    New Member

  • Topic Starter
  • Member
  • Pip
  • 2 posts

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.


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP