Changeset 13656 for lang/perl/Acme-Actors-JA
- Timestamp:
- 06/11/08 20:22:28 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Acme-Actors-JA/trunk/lib/Acme/Actors/JA/Scraper.pm
r4348 r13656 120 120 } 121 121 122 sub scrape_gravure_idols_jp 123 { 124 my $uri = URI->new('http://ja.wikipedia.org/wiki/%E3%82%B0%E3%83%A9%E3%83%93%E3%82%A2%E3%82%A2%E3%82%A4%E3%83%89%E3%83%AB%E4%B8%80%E8%A6%A7'); 125 126 my $scraper = scraper { 127 process q|//div[@id = 'bodyContent']//ul/li/a|, 128 'idols[]' => { 129 'name' => 'TEXT', 130 'url' => '@href' 131 } 132 ; 133 }; 134 $scraper->scrape($uri)->{idols}; 135 } 136 122 137 1; 123 138
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)