From: "semmons99@..." Date: 2006-02-28T01:38:37+09:00 Subject: Re: Current Temperature (#68) ** Sorry had my test code still in there for my location # Author: Shane Emmons # # Allows retrieval of current temperature information. Pretty simple # and straight forward. Uses match to extract data from the xml # document that is returned. Adjusted for easier horizontal reading. ;-) # # usage: ruby current_temp.rb [zipcode|other] # # zipcode: US zipcode # other: country code information. # example: SPXX0050 for Madrid, Spain require 'net/http' begin info = Net::HTTP.get( "xml.weather.yahoo.com", "/forecastrss?p=".concat( ARGV[ 0 ] ) ) location = info.match( /Yahoo! Weather for (.*)