...

View Full Version : How to get values from a url's div class variable



amirak17
08-13-2007, 03:43 PM
How to get values from a url's div class variable:

for example:

if we want temperature value of Chicago IL from cnn.com/weather the url is:

http://weather.cnn.com/weather/forec...&zipCode=60601

and under this url there is a div class variable:
cnnWeatherTempCurrent

this variable contains the value of the current temperature.

so using HTML or Javascript or PHP how can we get the value of this variable in our web page

Your help is highly appreciated.

Fumigator
08-13-2007, 04:36 PM
Are you asking how to scrape data from another site? Google +scrape +website to become familiar.

Inigoesdr
08-14-2007, 01:50 AM
You should be able to do it with file_get_contents(), and preg_match().

StupidRalph
08-14-2007, 01:58 AM
Are you just looking for a weather script?
http://www.codingforums.com/showthread.php?t=79468



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum