E2::Search - A module for searching for nodes on http://everything2.com
use E2::Search; my $search = new E2::Search; # Fetch 10 results for a keyword search on "William Shatner" my @results = $search->search( "William Shatner", 'e2node', 10 ); foreach my $r ( @results ) { print $r->{title}; }
This module provides an interface to everything2.com's search interface. It inherits E2::Ticker.
new creates an E2::Search object.
new
E2::Search
search performs a title search and returns a list of hashrefs to the titles found (with "title" and "node_id" as keys to each hash). NODETYPE is the type of node intended ("e2node" is default; other possibilities include "user", "group", "room", "document", "superdoc", and possible others). MAX_RESULTS (if set) is the maximum number of results to return.
search
E2::Interface, E2::Ticker, E2::UserSearch, http://everything2.com, http://everything2.com/?node=clientdev
Jose M. Weeks <jose@joseweeks.com> (Simpleton on E2)
This software is public domain.
To install E2::Interface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm E2::Interface
CPAN shell
perl -MCPAN -e shell install E2::Interface
For more information on module installation, please visit the detailed CPAN module installation guide.