Net::Hulu - Perl extension for the Net::Hulu name space. Can be use to download and process all XML-formatted RSS feeds provided by the popular site hulu.com.
use strict; use warnings; use Net::Hulu qw( get_recent_videos get_recent_shows get_recent_movies get_highest_rated_videos get_popular_videos_today get_popular_videos_this_week get_popular_videos_all_time get_soon_to_expire_videos get_recent_blog_postings download_recent_videos_xml download_recent_shows_xml download_recent_movies_xml download_highest_rated_videos_xml download_popular_videos_today_xml download_popular_videos_this_week_xml download_popular_videos_all_time_xml download_soon_to_expire_videos_xml download_recent_blog_postings_xml);
Net::Hulu provides methods to download all XML-formatted RSS feeds provided by hulu.com and then return a data structure to the user containing the Data from the RSS feeds.
The following methods will download RSS feeds from hulu.com to directory where Hulu.pm is installed. Method download_recent_videos_xml will download RSS feed for recent videos. Method download_recent_shows_xml will download RSS feed for recent shows. Method download_recent_movies_xml will download RSS feed for recent movies. Method download_highest_rated_videos_xml will download RSS feed for highest rated videos. Method download_popular_videos_today_xml will download RSS feed for today's popular videos. Method download_popular_videos_this_week_xml will download RSS feed for this week's popular videos. Method download_popular_videos_all_time_xml will download RSS feed for most popular videos of all time. Method download_soon_to_expire_videos_xml will download RSS feed for soon to expire videos. Method download_recent_blog_postings_xml will download RSS feed for recent blog postings to hulu.com.
The following methods will process all RSS feeds provided by hulu.com. Method get_recent_videos returns a list of recently added videos to the user. Method get_recent_shows returns a list of recently added shows to the user. Method get_recent_movies returns a list of recently added movies to the user. Method get_highest_rated_videos returns a list of highest rated videos to the user. Method get_popular_videos_today returns a list of most popular videos today to the user. Method get_popular_videos_this_week returns a list of most popular videos this week to the user. Nethod get_popular_videos_all_time returns a list of most popular videos of all time to the user. Method get_soon_to_expire_videos returns a list of soon to expire videos to the user. Method get_recent_blog_postings returns recent blog postings for hulu.com to the user.
The following code will download all the XML-formatted RSS feeds provided by hulu.com, process their content, and print the results for the user.
use strict; use warnings; use Net::Hulu qw( get_recent_videos get_recent_shows get_recent_movies get_highest_rated_videos get_popular_videos_today get_popular_videos_this_week get_popular_videos_all_time get_soon_to_expire_videos get_recent_blog_postings download_recent_videos_xml download_recent_shows_xml download_recent_movies_xml download_highest_rated_videos_xml download_popular_videos_today_xml download_popular_videos_this_week_xml download_popular_videos_all_time_xml download_soon_to_expire_videos_xml download_recent_blog_postings_xml); download_recent_videos_xml(); get_recent_videos(); download_recent_shows_xml(); get_recent_shows(); download_recent_movies_xml(); get_recent_movies(); download_highest_rated_videos_xml(); get_highest_rated_videos(); download_popular_videos_today_xml(); get_popular_videos_today(); download_popular_videos_this_week_xml(); get_popular_videos_this_week(); download_popular_videos_all_time_xml(); get_popular_videos_all_time(); download_soon_to_expire_videos_xml(); get_soon_to_expire_videos(); download_recent_blog_postings_xml(); get_recent_blog_postings();
Please see the documentation for the Perl modules XML::Twig an LWP::Simple for details on how Net::Hulu downloads and processes the XML-formatted RSS feeds provided by the popular website hulu.com.
Please send all bug reports to the maintainer's email address hevenerg {[at]} marshall {[dot]} edu.
Net::Hulu was written and is currently maintained by Gerald L. Hevener, M.S..
Copyright (C) 2009 by Gerald L. Hevener, M.S. <hevenerg {[at]} marshall {[dot]} edu.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Net::Hulu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Hulu
CPAN shell
perl -MCPAN -e shell install Net::Hulu
For more information on module installation, please visit the detailed CPAN module installation guide.