Thanks for this cool script, Ryan.
You might want to change that integer! argument to a
string! in that function definition, since there are
Zip codes that begin with a zero (like mine):
;snip-------------
forecast: func [
ZIP [string!]
...
>> print forecast "07940"
...
;end snip------------
Cheers.
--- [EMAIL PROTECTED] wrote:
> I thought I'd share this quick function for any web
> developers who may be
> interested in grabbing National Weather Service
> (U.S.) forecasts from
> Accuweather.com.
>
> forecast: func [
> ZIP [integer!] {The ZIP code for where you want
> the forecast}
> /local weather-URL weather-info future-weather
> ][
> weather-URL: make url! rejoin
>
[{http://www.accuweather.com/adcbin/local_index?thisZip=}
> ZIP {&nav=home}]
> weather-info: read weather-URL
> parse/all weather-info [thru "^/." copy text to
> "^/^/" (future-weather:
> copy text)]
> future-weather
> ]
>
> USAGE example...
>
> >> print forecast 98270
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.