Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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
  • 5 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