Changeset 13194 for lang/perl/WWW-Mixi-Scraper
- Timestamp:
- 06/04/08 14:50:45 (5 years ago)
- Location:
- lang/perl/WWW-Mixi-Scraper/trunk
- Files:
-
- 3 modified
-
Changes (modified) (1 diff)
-
lib/WWW/Mixi/Scraper.pm (modified) (1 diff)
-
lib/WWW/Mixi/Scraper/Plugin/ShowCalendar.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WWW-Mixi-Scraper/trunk/Changes
r7521 r13194 1 1 Revision history for WWW-Mixi-Scraper 2 3 0.14 2008/06/04 4 - mixi seems to have changed show_calendar format 5 fixed scraping rules (thanks to otsune) 2 6 3 7 0.13 2008/03/05 -
lang/perl/WWW-Mixi-Scraper/trunk/lib/WWW/Mixi/Scraper.pm
r7521 r13194 4 4 use warnings; 5 5 6 our $VERSION = '0.1 3';6 our $VERSION = '0.14'; 7 7 8 8 use String::CamelCase qw( decamelize ); -
lang/perl/WWW-Mixi-Scraper/trunk/lib/WWW/Mixi/Scraper/Plugin/ShowCalendar.pm
r13193 r13194 24 24 my %scraper; 25 25 $scraper{ym} = scraper { 26 process ' #calendarBox>div.heading02>h3',26 process 'div#calendarBox>div.heading02>h3', 27 27 ym => 'TEXT'; 28 28 result qw( ym ); 29 29 }; 30 30 my $ym = $scraper{ym}->scrape(\$html); 31 31 32 my ($year, $month) = $ym =~ /^(\d{4})\D+(\d{1,2})/; 32 33 33 34 $scraper{day} = scraper { 34 process ' .',35 day => 'TEXT'; # TODO: fixme. I hope exclude <p> and <ul> node.35 process 'td', 36 day => sub { $_->content and $_->content->[0] }; 36 37 process 'ul>li', 37 38 'icons[]' => sub{
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)