on Tue, 25 Jun 2002 06:18:34 GMT, [EMAIL PROTECTED] (Alan C.)
wrote: 

> 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?

It seems that the info you want is between <pre></pre> tags, so you
could use the following method: 

  #! perl -w
  use strict;
  use LWP::Simple;
  use HTML::TreeBuilder;

  my $tree = HTML::TreeBuilder->new; 
  $tree->parse(get("http://iwin.nws.noaa.gov/iwin/ca/hourly.html";));
  print $_->as_text() foreach $tree->look_down( '_tag', 'pre');

-- 
felix

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

Reply via email to