|
Acme::Pr0n::Automate - All your pr0n are belongs to us |
Acme::Pr0n::Automate - All your pr0n are belongs to us
PARENTAL ADVISORY - EXPLICIT CODE ------------------------------------
use Acme::Pr0n::Automate qw(:categories);
my $naughty = Acme::Pr0n::Automate->new( sources => [qw(Free6 Easypic)], categories => [BABES, LINGERIE, REDHEADS, PANTIES], db => "naughty_db", );
$naughty->fetch();
my $quality_stuff = $naughty->search( from => time - 86400, categories => [BABES, REDHEADS] );
$quality_stuff->output(file => "naughty_db/today.html");
Acme::Pr0n::Automates automates your pr0n desires
The database object
The new constructor takes the following named arguments:
sources - An arrayref of sources to retrive from
categories - An arrayref of categories we are interested of
db - The path where to store the database files
On sucess, it will return a new Acme::Pr0n::Automate object which can later be used for fetching and searching. If something goes wrong, such as a missing argument it will die with an error.
Fetch links from the sources given to the object when it was constructed.
Search the database for items. Pass the following arguments to control the search:
from - Get only items fetched after this timestamp
categories - An arrayref of categories to search
Returns a new Acme::Pr0n::Automate::View object that contains the search results.
The search-result writer
Writes the output of $res which is an Acme::Pr0n::Automate::View instance to the file ``output.html''. The method uses the extension to determine what output filter it should use. Only HTML is supported in this version.
Nothing by default
Import constans for supported categories.
A backend might not support all categories, so don't be suprised if you are missing a requested category. See CATEGORIES.txt for a list of categories.
Always use the category constants where they are expected, do NOT use a string because this can and will probablly not do what you want.
The pimp daddy <claesjac at cpan.org>
This spot is open for volunteers
Sex.pm
|
Acme::Pr0n::Automate - All your pr0n are belongs to us |