Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i write a news paging type script

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi
Basically I want to setup a system that searchs the international news websites looking for key words.
When it finds the keyword in a certain article it then produces a flashing symbole on a jpeg world map, defining the country/region where the news is comming from.
Any ideas?

Any help appriciated..thx

My system is a sun sparc5 running openbsd 3.
 
you can read the file with a script like this
#!/usr/local/bin/perl

use LWP::UserAgent;

my $URL = 'print "Fetching $URL ...\n";


$ua = new LWP::UserAgent;
$req = new HTTP::Request 'GET' => "$URL";
$res = $ua->request($req);
if ($res->is_success) {

open (DATABASE,">cnn.db");

print DATABASE ($res->content);
close (DATABASE);
printf "fetched %d bytes\n", length($res->content);
} else {
print "Error: " . $res->code . " " . $res->message;
}

##########################
than maybe using image maps and a virtual include or javascript..
Good luck hope this helps

MAC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top