OurNet::Query 1.56
Sponsored Links
OurNet::Query 1.56 Ranking & Summary
File size:
0.063 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1054
Date added:
2006-12-04
Publisher:
Autrijus Tang
OurNet::Query 1.56 description
OurNet::Query is a Perl module for scriptable queries with template extraction.
SYNOPSIS
use OurNet::Query;
# Set query parameters
my ($query, $hits) = (autrijus, 10);
my @sites = (google, google); # XXX: write more templates!
my %found;
# Generate a new Query object
my $bot = OurNet::Query->new($query, $hits, @sites);
# Perform a query
my $found = $bot->begin(&callback, 30); # Timeout after 30 seconds
print *** . ($found ? $found : No) . match(es) found.;
sub callback {
my %entry = @_;
my $entry = %entry;
unless ($found{$entry{url}}) {
print "*** [$entry->{title}]" .
" ($entry->{score})" .
" - [$entry->{id}]n" .
" URL: [$entry->{url}]n";
}
$found{$entry{url}}++;
}
This module provides an easy interface to perform multiple queries to internet services, and wraps them into your own format at once. The results are processed on-the-fly and are returned via callback functions.
Its interfaces resembles that of WWW::Searchs, but implements it in a different fashion. While WWW::Search relies on additional subclasses to parse returned results, OurNet::Query uses site descriptors for search search engine, which makes it much easier to add new backends.
Site descriptors may be written in XML, Template toolkit format, or the .fmt format from the commercial Inforia Quest product.
SYNOPSIS
use OurNet::Query;
# Set query parameters
my ($query, $hits) = (autrijus, 10);
my @sites = (google, google); # XXX: write more templates!
my %found;
# Generate a new Query object
my $bot = OurNet::Query->new($query, $hits, @sites);
# Perform a query
my $found = $bot->begin(&callback, 30); # Timeout after 30 seconds
print *** . ($found ? $found : No) . match(es) found.;
sub callback {
my %entry = @_;
my $entry = %entry;
unless ($found{$entry{url}}) {
print "*** [$entry->{title}]" .
" ($entry->{score})" .
" - [$entry->{id}]n" .
" URL: [$entry->{url}]n";
}
$found{$entry{url}}++;
}
This module provides an easy interface to perform multiple queries to internet services, and wraps them into your own format at once. The results are processed on-the-fly and are returned via callback functions.
Its interfaces resembles that of WWW::Searchs, but implements it in a different fashion. While WWW::Search relies on additional subclasses to parse returned results, OurNet::Query uses site descriptors for search search engine, which makes it much easier to add new backends.
Site descriptors may be written in XML, Template toolkit format, or the .fmt format from the commercial Inforia Quest product.
OurNet::Query 1.56 Screenshot
OurNet::Query 1.56 Keywords
OurNet
Query 1.56
Perl module
found
queries
query
entry
module
template
OurNet::Query
OurNetQuery
OurNet::Query 1.56
Libraries
Programming
Bookmark OurNet::Query 1.56
OurNet::Query 1.56 Copyright
WareSeeker periodically updates pricing and software information of OurNet::Query 1.56 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of OurNet::Query 1.56 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Slash::OurNet is a Slash 2.0+ plug-in that allows OurNet connectivity to various BBS and NNTP systems. Free Download
Practical Query Analyzer produces HTML reports on query statistics. Free Download
Be::Query is a Perl module to do a query for a given filesystem. Free Download
Relations::Query is a Perl Object for building queries with DBI/DBD::mysql. Free Download
Convert::yEnc::Entry is a Perl module as an entry in a Convert::yEnc::RC database. Free Download
Plucene is a Perl port of the Lucene search engine. Free Download
formHandler provides a modular PHP mailscript with a lot of default modules. Free Download
OurNet::BBSApp::Sync is a Perl module to sync between BBS article groups. Free Download
Latest Software
Popular Software
Favourite Software