Whitey has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use LWP::Simple; use LWP::UserAgent; $_ = get ("http://www.bloomberg.com/energy/index.html"); $data =~ /<!---------------PETROLEUM-----------------> (.*) <map name= +"BbgELogin2">/m; open (FH,"./file.txt") ||die"$!"; print FH $_; close FH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pulling HTML from a remote site and writing a portion of it to a file on server
by bikeNomad (Priest) on Jun 23, 2001 at 22:39 UTC | |
by Whitey (Novice) on Jun 23, 2001 at 22:43 UTC | |
by bikeNomad (Priest) on Jun 23, 2001 at 22:45 UTC | |
by jeffa (Bishop) on Jun 23, 2001 at 22:46 UTC | |
|
Re: Pulling HTML from a remote site and writing a portion of it to a file on server
by Beatnik (Parson) on Jun 23, 2001 at 23:05 UTC |