🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chi.internet
Article #123

Re: Parse wunderground.com

#123
From: Mark Anderson
Date: Tue, 27 Nov 2012 20:46
13 lines
2298 bytes
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.
Technical Details
Message-ID: <MPG.2b1ef0b2582e1118989a6a@news.speakeasy.net>
Path: arc1-ca.pugleaf.net!s9ni15022pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail
References: <MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net> <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications>

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.66.81.129 with SMTP id a1mr4296283pay.30.1354049203673;
        Tue, 27 Nov 2012 12:46:43 -0800 (PST)
Path: arc1-ca.pugleaf.net!s9ni15022pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 27 Nov 2012 14:46:42 -0600
From: Mark Anderson <mea@nospambradnylion.com>
Newsgroups: chi.internet
Subject: Re: Parse wunderground.com
Date: Tue, 27 Nov 2012 15:46:26 -0500
Message-ID: <MPG.2b1ef0b2582e1118989a6a@news.speakeasy.net>
References: <MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net> <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications>
MIME-Version: 1.0
User-Agent: MicroPlanet-Gravity/3.0.4
Lines: 15
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 66.92.134.90
X-Trace: sv3-2WG8LilXE/qqmTJXUySFQdZfAomSj2+MbxviL6ToIxroaXaMnsPo7g/5AalNXOQfTMJA2cOBaDQoARB!8nNifZjIH7rjtsZzHW/aFj7yhssWWVH48VGmG5jP1FiaRsrjOY2q4Bc3jL2o3oAk3L66oQxV/7s9!Vv1XfgeilZ7mot6Mt9+m2HxPbSuz
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1936
X-Original-Bytes: 1875
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit