Hello,

#!/perl/bin/perl -w
# print ASCII from HTML from a URL
         use LWP::Simple;
         use HTML::Parse;
         use HTML::FormatText;
         my ($html, $ascii);
         $html = 
get("http://www.wrh.noaa.gov/cgi-bin/Sacramento/afd?SFOZFPSTO";);
         defined $html
             or die "Can't fetch HTML from http://www.wrh.noaa.gov/";;
         $ascii = HTML::FormatText->new->format(parse_html($html));
print $ascii
#--end--

(Windows) (after I added 1 module to my HD from cpan) The above works 
really fine with the above url. There are no html tables in that url's 
source code.

But substitute the above url with this next url

http://iwin.nws.noaa.gov/iwin/ca/hourly.html

And there's plenty of html tables in the source code here which all it has 
for output is a bunch of "TABLES NOT SHOWN" just like that in caps.

With this latter url, how do I make it just to strip the html so that the 
(weather) data can print/show?

If answer is in the docs/man pages on the pertinent module(s) then please 
tell me how/what to look/find.

Thanks much!  Alan.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to