🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chi.internet
Article #122

Re: Parse wunderground.com

#122
From: Robert Bonomi
Date: Tue, 27 Nov 2012 19:43
24 lines
2552 bytes
In article <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net>,
Mark Anderson  <mea@nospambradnylion.com> wrote:
>In article presence@MUNGEpanix.com says...
>> wow. 
>> 
>> Why not just add 10 characters of awk to my version of whatever the hell
>> you're trying to do up there.
>> 
>> Anybody that uses perl isn't a programmer.
>> 
>>  wget -qO-
>"http://rss.wunderground.com/auto/rss_full/IL/Chicago.xml?units=english"
>| grep Temp
>
>That's interesting.  I couldn't find an xml or rss version like this for 
>my neighborhood.  I hit a specific weather station that's linked to my 
>zip code which is some cgi script on their side.  

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
Technical Details
Message-ID: <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications>
Path: arc1-ca.pugleaf.net!s9ni14945pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.nuvoxcommunications!news.posted.nuvoxcommunications.POSTED!not-for-mail
References: <MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@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.66.86.138 with SMTP id p10mr3795595paz.14.1354045419769;
        Tue, 27 Nov 2012 11:43:39 -0800 (PST)
MIME-Version: 1.0
Path: arc1-ca.pugleaf.net!s9ni14945pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.nuvoxcommunications!news.posted.nuvoxcommunications.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 27 Nov 2012 13:43:38 -0600
Newsgroups: chi.internet
References: <MPG.2b1c803350640b6b989a65@news.speakeasy.net> <k8uens$84b$1@reader1.panix.com> <MPG.2b1ca9a129fca2e7989a66@news.speakeasy.net>
Organization: Gizmos & Gadgets, Ltd.
Subject: Re: Parse wunderground.com
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: bonomi@host122.r-bonomi.com (Robert Bonomi)
Originator: bonomi@host122.r-bonomi.com (Robert Bonomi)
Message-ID: <JLGdnbej65V2iijNnZ2dnUVZ_sidnZ2d@posted.nuvoxcommunications>
Date: Tue, 27 Nov 2012 13:43:39 -0600
Lines: 27
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 204.87.227.120
X-Trace: sv3-mnKqwBoVLLy7mlqGsaza/sDUcihOmP8MBjPte2iYqEEv4BhReIcj90xNPBWjjkTelGCittuHPNHd6ar!w2jmBG6Hj2H/GWfY4VGZdb7d0UPFq1PYr15XZDIPg27xTCBjaYlylEskqv0c+kh4dBAvigTC4gkY!BAqqWK0da30749x9IMNLKqbp9uhTlnIp/Qw4Y1qZnqPQ
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: 2172
X-Original-Bytes: 2111