Reader: 1
|< 1 2 3 >| | 26 entries, 3 pages |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl
use XML::RSS;
use LWP::Simple;
print " --- start ------------------\n\n\n";
$title="Tagesschau";
$url="http://www.tagesschau.de/newsticker.rdf";
genTable($title, $url);
print "\n\n\n --- ende --------------------\n";
exit;
sub genTable {
my $title=shift;
my $url=shift;
$content=get($url);
my $rss = new XML::RSS;
$rss->parse($content);
print "$title\n\n";
foreach my $item (@{$rss->{'items'}}) {
next unless defined($item->{'title'}) && defined($item->{'link'});
print "$item->{'title'}\n$item->{'link'}\n\n\n";
}
}
|< 1 2 3 >| | 26 entries, 3 pages |