![]() |
exhalations |
|
Friday, November 30, 2001
Working on a perl script to extract weather info from a remote web site. At first I was going to use ftp but couldn't figure out how to do that so I decided to use the LWP::Simple module which is designed to allow one to retrieve a web page from a script. The technique is described at the web developers virtual library. After extracting the page from the Weather Underground site, I used a regular expression to extract just the temperature. It's amazing how satisfying those little victories are when you finally get a script like that to work. It opens up such a wide range of potential applications. Speaking of the weather, it's 66 degrees F now here in Reston, VA, at 8:00 p.m. and it's nearly December. It's been great cycling weather, but I suppose we will have to pay for this good weather by freezing our tushes off later on (thanks to Merriam-Webster for the proper spelling of tush).
Comments:
Post a Comment
|