WWW::BurrpTV - Parse tv.burrp.com for TV listings.
use WWW::BurrpTV; my $tv = WWW::BurrpTV->new ( cache => '/tmp/module', ); $tv->timezone('Asia/Bahrain'); # Get current playing show on Discovery Channel my $shows = $tv->get_shows(channel => 'Discovery Channel'); my $current_playing_show = $$shows[0]; # First item in the array is the current playing show. print $current_playing_show->{_show}; print $current_playing_show->{_time12}; print $current_playing_show->{_link};
WWW::BurrpTV is an object oriented interface to parse TV listings from tv.burrp.com.
Object's constructor. Takes an optional hash argument which can be used to cache the list of channels. This does not cache the TV listings.
my $tv = WWW::BurrpTV->new ( cache => '/tmp/module', # Path to use as cache (optional). Make sure the path exists. );
This method does not take any arguments, and returns a hashref.
$tv->channel_list();
Change the default timezone (Asia/Kolkata).
$tv->timezone('Europe/Monaco');
Takes the channel name and an optional timezone as arguments, and returns an arrayref.
$tv->get_shows ( channel => 'Discovery Channel', timezone => 'Asia/Bahrain', # Optional );
http://tv.burrp.com/
rarbox, <rarbox@cpan.org>
Copyright (C) 2009 by rarbox
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::BurrpTV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::BurrpTV
CPAN shell
perl -MCPAN -e shell install WWW::BurrpTV
For more information on module installation, please visit the detailed CPAN module installation guide.