Gossamer Forum
Home : General : Perl Programming :

grab TOP BOX OFFICE

Quote Reply
grab TOP BOX OFFICE
Hi, any can build a script to grab Top Box Office from yahoo or any web with Top box office such as http://movies.yahoo.com/
I want to put the box office table onto my homepage.

Any Help would be great appriciated.

Love you all,and thank for all help here ,this is a greatest forum.
Act.
Quote Reply
Re: grab TOP BOX OFFICE In reply to
LWP::Simple

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: grab TOP BOX OFFICE In reply to
Try;
Code:
#!/usr/bin/perl

use LWP::Simple;

$page = "/index.html";
$uri = 'http://movies.yahoo.com';
$get_page1 = "$uri" . "$page";
$page_content1 = get($get_page1); # put the contents from the page into a variable so we can play with it later

print "Content-type: text/html \n\n";
print "$page_content";
That would get the content from the page, and then store it into a variable. You could then use other codes to take out bits of whatever you want from that variable.

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: grab TOP BOX OFFICE In reply to
Remember to ask Yahoo! what their stance on copyright is first.

If you poke around Yahoo! especially the 'linking to...' section you will find that Yahoo! does give a lot of it's content away free anyway.

Wil