WWW::Wikevent::Bot

WWW::Wikevent::Bot is a Perl module which will help you write scraper scripts.
Download

WWW::Wikevent::Bot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mark Jaroski
  • Publisher web site:
  • http://search.cpan.org/~markj/WWW-Wikevent-Bot-0.2.0/lib/WWW/Wikevent/Bot.pm

WWW::Wikevent::Bot Tags


WWW::Wikevent::Bot Description

WWW::Wikevent::Bot is a Perl module which will help you write scraper scripts. WWW::Wikevent::Bot is a Perl module which will help you write scraper scripts for gathering events from venue and artist websites and for inclusion in the Free content events compendium, Wikevent.SYNOPSIS use WWW::Wikevent::Bot; use HTML::TreeBuilder; use utf8; my $bot = WWW::Wikevent::Bot->new(); $bot->name( 'HideoutBot' ); $bot->url( 'http://www.hideoutchicago.com/schedule.html' ); $bot->sample( 'sample.html' ); $bot->encoding( 'utf8' ); $bot->parser( sub { my ( $bot, $html ) = @_; # Use HTML::TreeBuilder and HTML::Element, or if you prefer # HTML::TokeParser to parse the HTML down to whatever elements # contains events, then ... foreach my $container ( @event_containers ) { my $event = $bot->add_event(); # build up the event using methods of L } # Figure out the next page to scrape (not needed if you are parsing # by month) and set $bot->url( $next_page_to_scrape ); }); $bot->scrape(); $bot->upload();The module takes care of the tedium of interaction with the website, and leaves to you the fun work of writing the scraper subroutine for the venue or artist you are interested in. Requirements: · Perl


WWW::Wikevent::Bot Related Software