Parent Directory | Revision Log
Yahoo Groups search provider
1 | dpavlin | 146 | #!/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 |