/[Grep]/lib/Grep/Source/YahooGroups.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

Contents of /lib/Grep/Source/YahooGroups.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 146 - (show annotations)
Sun May 20 11:39:51 2007 UTC (17 years ago) by dpavlin
File size: 425 byte(s)
Yahoo Groups search provider
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 package Grep::Source::YahooGroups;
7
8 =head1 NAME
9
10 Grep::Source::YahooGroups - scraiper for Yahoo Groups search results
11
12 =cut
13
14 sub content_have {
15 qr(ygrp-contentblock);
16 }
17
18 sub fetch {
19 my $self = shift;
20 my $parent = shift;
21
22 $parent->scrape(
23 wrapper => [ qw/div class ygrp-contentblock/ ],
24 results => [ qw/td class message/ ],
25 scrape => [ qw/div class msgarea/ ],
26 );
27
28 }
29
30 1;

  ViewVC Help
Powered by ViewVC 1.1.26