Hallo,
wie kann man eine HTML-Datei von einen Server via Perl
downloaden um sie dann abzuspeichern???
Vielen Dank
Winter
Hallo,
wie kann man eine HTML-Datei von einen Server via Perl
downloaden um sie dann abzuspeichern???
Vielen Dank
Winter
Hallo auch,
wie kann man eine HTML-Datei von einen Server via Perl
downloaden um sie dann abzuspeichern???
Das steht in der Perlfaq 9, die Bestandteil Deiner Perl-Ditribution ist:
$ perldoc -q "fetch an HTML file"
How do I fetch an HTML file?
One approach, if you have the lynx text-based HTML browser installed on your system, is this:
 $html\_code = `lynx -source $url`;
 $text\_data = `lynx -dump $url`;
The libwww-perl (LWP) modules from CPAN provide a more powerful 
way to do this. They don't require lynx, but like lynx, can still work through proxies:
 # simplest version
 use LWP::Simple;
 $content = get($URL);
 # or print HTML from a URL
 use LWP::Simple;
 getprint "http://www.linpro.no/lwp/";;
 # or print ASCII from HTML from a URL
 # also need HTML-Tree package from CPAN
 use LWP::Simple;
 use HTML::stuck\_out\_tongue:arser;
 use HTML::FormatText;
 my ($html, $ascii);
 $html = get("http://www.perl.com/":wink:;
 defined $html
 or die "Can't fetch HTML from http://www.perl.com/";;
 $ascii = HTML::FormatText-\>new-\>format(parse\_html($html));
 print $ascii;
Gruss,
-Andreas.