Article View: chi.internet
Article #124Re: Parse wunderground.com
From: Cydrome Leader
Date: Wed, 28 Nov 2012 17:53
Date: Wed, 28 Nov 2012 17:53
17 lines
2261 bytes
2261 bytes
Mark Anderson <mea@nospambradnylion.com> wrote:
> In article bonomi@host122.r-bonomi.com says...
>> Why not do this the *EASY* way??
>>
>> $ station=KIlCHI69 # or whatever the 'neighborhood' station is you want
>> $ page='weatherstation/WXDailyHistory.asp'
>> $ parms='ID='${station}'&wuSelect=PWS&format=1'
>> $ wget -qO- http://www.wunderground.com/${page}?${parms} >${station}.csv
>
> Ughh. I can't believe I missed this! According to my browser history I
> was at the local PWS site once. Thanks. Your script is simpler and awk
> friendly. :-) That site keeps track of historical data too so I really
> don't even need to do this. Maybe I'll tail -n1 your script, pipe it
> into awk and put a little weather doohickey on the desktop.
If you run that trash called linux just use the watch command to loop the
wget over and over again.
Technical Details
Message-ID:
<k95j3a$koh$2@reader1.panix.com>Path:
arc1-ca.pugleaf.net!s9ni15245pbb.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!panix!not-for-mailReferences:
<MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net> <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications> <MPG.2b1ef0b2582e1118989a6a@news.speakeasy.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d5fa,f007932fe2b14462
X-Google-NewGroupId: yes
X-Google-Attributes: gid837b0c45a0,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.138.14 with SMTP id qm14mr4668312pbb.5.1354125226739;
Wed, 28 Nov 2012 09:53:46 -0800 (PST)
MIME-Version: 1.0
Path: arc1-ca.pugleaf.net!s9ni15245pbb.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail
From: Cydrome Leader <presence@MUNGEpanix.com>
Newsgroups: chi.internet
Subject: Re: Parse wunderground.com
Date: Wed, 28 Nov 2012 17:53:46 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 19
Message-ID: <k95j3a$koh$2@reader1.panix.com>
References: <MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net> <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications> <MPG.2b1ef0b2582e1118989a6a@news.speakeasy.net>
NNTP-Posting-Host: panix2.panix.com
X-Trace: reader1.panix.com 1354125226 21265 166.84.1.2 (28 Nov 2012 17:53:46 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 28 Nov 2012 17:53:46 +0000 (UTC)
User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (NetBSD/5.1.2 (i386))
X-Received-Bytes: 1820