/[Grep]/lib/Grep/Source/Slug.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/Grep/Source/Slug.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 115 - (hide annotations)
Sun Mar 25 11:55:08 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 460 byte(s)
collect dd instead of dt
1 dpavlin 114 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5    
6     package Grep::Source::Slug;
7    
8     =head1 NAME
9    
10     Grep::Source::Slug - scraiper for L<http://www.nslu2-linux.org> search results
11    
12     =head1 BUGS
13    
14     This is heuristic scraper for unknown wiki engine.
15    
16     =cut
17    
18     sub content_have {
19     qr(\?action=edit);
20     }
21    
22     sub fetch {
23     my $self = shift;
24     my $parent = shift;
25    
26     $parent->scrape(
27     wrapper => [ qw/div class wikisearch/ ],
28 dpavlin 115 results => 'dd',
29 dpavlin 114 scrape => [ qw/div id wikitext/ ],
30     );
31    
32     }
33    
34     1;

  ViewVC Help
Powered by ViewVC 1.1.26