E2::E2Node - A module for fetching data and manipulating e2nodes on http://everything2.com.
use E2::Superdoc; my $superdoc = new E2::Superdoc; $superdoc->login( "username", "password" ); # See E2::Interface if( $superdoc->load( "nate and dem bones" ) ) { # See E2::Node print $superdoc->title . " :\n\n"; # See E2::Node print $superdoc->text . "\n"; } # That's it, folks.
This module provides an interface to http://everything2.com's superdocs. It inherits E2::Node.
The XML output of a superdoc is basically just the HTML that the superdoc spits out. This output is available via the method text once a superdoc has been loaded.
text
load
new creates a new E2::Superdoc object. Until that object is logged in in one way or another (see E2::Interface), it will use the "Guest User" account.
new
E2::Superdoc
clear clears all the information currently stored in $superdoc.
clear
text returns the superdoc text of the currently-loaded superdoc.
E2::Interface, E2::Node, 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.