Changeset 21499
- Timestamp:
- 10/17/08 17:29:05 (5 years ago)
- Location:
- lang/perl/Net-DMM/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Net-DMM/trunk/Changes
r21378 r21499 1 1 Revision history for Net-DMM 2 3 0.0.5 Wed Oct 17 17:17:17 2008 4 fixed Net::DMM(add option 'custom_scraper' in do_scrape method) 2 5 3 6 0.0.4 Wed Oct 15 18:15:15 2008 -
lang/perl/Net-DMM/trunk/META.yml
r21374 r21499 1 1 --- 2 2 name: Net-DMM 3 version: 0.0. 33 version: 0.0.5 4 4 author: 5 5 - 'Dai Okabayashi <genkivogue@ybb.ne.jp>' … … 19 19 Net::DMM: 20 20 file: lib/Net/DMM.pm 21 version: 0.0. 321 version: 0.0.5 22 22 Net::DMM::Scraper::ItemDetail: 23 23 file: lib/Net/DMM/Scraper/ItemDetail.pm -
lang/perl/Net-DMM/trunk/lib/Net/DMM.pm
r21378 r21499 10 10 use URI; 11 11 12 use version; our $VERSION = qv('0.0. 4');12 use version; our $VERSION = qv('0.0.5'); 13 13 14 14 sub new { … … 24 24 my $opt = shift; 25 25 croak "no url." unless $opt->{url}; 26 croak "no scraper." unless $opt->{scraper}; 27 my $scrape_module = __PACKAGE__ . "::Scraper::" . $opt->{scraper}; 26 croak "no scraper." if !$opt->{scraper} and !$opt->{custom_scraper}; 27 my $scrape_module = ''; 28 $scrape_module = __PACKAGE__ . "::Scraper::" . $opt->{scraper} if $opt->{scraper}; 29 $scrape_module = $opt->{custom_scraper} if $opt->{custom_scraper}; 28 30 return $scrape_module->new({ 29 31 url => $opt->{url}, … … 100 102 url => $search->{search_url}, 101 103 scraper => 'SearchResult', 104 # u can use custom scraper class 105 custom_scraper => 'Custom::Scraper', # This is option. 102 106 } 103 107 );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)