Page 1 of 1

Retrieving Data (text) off remote site

Posted: Sun Oct 02, 2005 4:48 pm
by NorthPilot06
Hey everyone,

I have a dilemma, and I have no clue where to start. The basics of my idea are as follows: I am making a website which will cover all of the US ski resorts in great detail, along with a rating system and a ski store. Part of my in-depth coverage of the ski resorts includes the requirement to put current weather/ski conditions on the website. This data, which is on the ski resort's own website, would have to be recovered by my website about every 6-12 hours (there goes the lightbulb :idea: in my head...crons - and of course I would provide a link back to the source of the information). However, I'm sure that PHP would have to be utilized in order to describe what text to select, and I truthfully do not have a clue how to do it :roll: I'm pretty sure that it can be done :P

I'll provide you all with a quick example: For my Snowshoe page, I would have to recover the current weather from their website. The information is located on this page: http://www.snowshoemtn.com (Right-hand side, halfway down the page). I am just in need of some way to get that information onto my website 8)

Thanks in advance!

Posted: Sun Oct 02, 2005 11:02 pm
by ruchit
use fget to retrieve the source code of the page from the other website... look for patterns in this code (u'll sure find one)... wipe off the dirt... & u have it

Posted: Mon Oct 03, 2005 12:00 am
by pilau
ruchit wrote:use fget to retrieve the source code of the page from the other website... look for patterns in this code (u'll sure find one)... wipe off the dirt... & u have it
Or pursue those websites to use RSS feeds 8)