Page 1 of 1

Parsing data from external websites

Posted: Sun Mar 26, 2006 6:37 am
by ageorghiou
Hi, I'm trying to set up a page that shows the 5 day tide forecast and I can't find any XML feeds anywhere so I've got to figure out how to grab the information I want from an HTML site. One site I found with the data I want is:
http://easytide.ukho.gov.uk/easytide/Ea ... onLength=5

or this printer-friendly one is perhaps better:
http://easytide.ukho.gov.uk/easytide/Ea ... ghtUnits=0
but I'm not sure what the best way to isolate just the information I'm looking for - say into an array of high tide, low tide and date for each of the 5 days. Would be much easier if I could find an xml feed but I seem to have exhausted my google abilities.

Any help would be greatly appreciated.
Thanks,
Andreas

Posted: Sun Mar 26, 2006 9:05 am
by John Cartwright
considering they do not want just anyone even linking to them, I doubt you have their permission to leech information from their website

Posted: Sun Mar 26, 2006 9:37 am
by ageorghiou
The friend that I'm doing this code for had previously linked to ukho tides information but (i assume) the html format or something else changed on their site at some point so his site hasn't updated this information for a while. I assumed that the company he's working for had previously obtained permission for the data as it was available on their site for a few years but I have just emailed him to confirm that.

Thanks for bringing that to my attention. I'll follow up once I confirm the permission.

Posted: Sun Mar 26, 2006 10:46 am
by John Cartwright
Since this is going to involve Regex, I'll move it to that forum for you.