in reply to Re: Weather warnings from www.meteoalarm.eu
in thread Weather warnings from www.meteoalarm.eu
I never got a handle on the HTML::TokeParser module so I try to get the data with regexp. But you are right: this is not to proper way to do it.
To get the warnings of all countries the script evaluates http://www.meteoalarm.eu/
I changed your
To get the warnings of all countries the script evaluates http://www.meteoalarm.eu/
I changed your
because there are many images on the page. So again I would need some routine (regexp) to filter out unwanted images.sub find_img{ my @images; my $content = shift; my $p = HTML::TokeParser::Simple->new(string => $content); while (my $t = $p->get_token){ push @images, $t if $t->is_start_tag(q{img}); } return \@images; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Weather warnings from www.meteoalarm.eu
by wfsp (Abbot) on May 28, 2010 at 08:50 UTC | |
by walto (Pilgrim) on May 30, 2010 at 12:28 UTC |
In Section
Cool Uses for Perl