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

08-13-2007, 02: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:


and under this url there is a div class variable:

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.

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

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

08-14-2007, 12:58 AM
Are you just looking for a weather script?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum