Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Displaying TV Listings (and no screen-scraping )

by spatterson (Pilgrim)
on Sep 27, 2005 at 10:57 UTC ( [id://495326]=note: print w/replies, xml ) Need Help??


in reply to Displaying TV Listings (and no screen-scraping )

A perlish version of the script (hopefully), also untested and may overwrite things.
use LWP::Simple; use Archive::Zip; my $url = 'http://www.bleb.org/tv/data/listings?format=XMLTV&file=zip& +channels=bbc1,bbc2,bbc3,bbc4,bbc7,itv1,ch4,five,abc1,bbc_6music,bbc_r +adio2,bbc_radio4,e4,itv2,itv3,uk_history&days=0'; my $zipfile = 'bleb.zip' if (is_success ( getstore $url, $zipfile ) { my $zip = Archive::Zip->new($zipfile); foreach my $z ($zip->members) { $zip->extractMember; } }
just another cpan module author

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://495326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found