WebService::GoogleHack::Search - This module is used to query Google.


WebService-GoogleHack documentation  | view source Contained in the WebService-GoogleHack distribution.

Index


NAME

Top

WebService::GoogleHack::Search - This module is used to query Google.

SYNOPSIS

Top

    use WebService::GoogleHack::Search;

    #create an object of type search
    my $search = GoogleHack::Search->new();

    #Query Google.
    $search->searchPhrase($searchString);

    #The results variable will now contain the results of your query.

    #Printing the searchtime

    print "\n Search Time".$search->{'searchTime'};

    #Printing the snippet element 0

    print "\n\nSnippet".$search->{'snippet'}->[0];

DESCRIPTION

Top

This module provides a simple interface to the Google API. It is used by the GoogleHack module.

PACKAGE METHODS

Top

_METHOD__->new()

Purpose: This function creates an object of type Search and returns a blessed reference.

_METHOD__->init(key,wsdl_location)

Purpose: This this function can used to inititalize the member variables.

Valid arguments are :

_METHOD__->Search(searchString,num_results,integer)

Purpose: This function is used to query googles

Valid arguments are :

Returns: Returns a Search object containing the search results.

_METHOD__->getEstimateNo()

Purpose: This function returns the number of results predicted by google for a specific search term.

No Valid arguments.

Returns: Returns the total number of results for a search string..

_METHOD__->IamFeelingLucky()

Purpose: This function imitates the "I am Feeling Lucky" search feature of Google. It basically returns the URL of the first result of your search.

No Valid arguments.

Returns: Returns the URL of the first result of your search.

_METHOD__->getCachedPage()

Purpose: This function retrieves a cached webpage, given the URL.

No Valid arguments.

Returns: Returns the contents of as web page given a URL.

AUTHOR

Top

Pratheepan Raveendranathan, <rave0029@d.umn.edu>

Ted Pedersen, <tpederse@d.umn.edu>

BUGS

Top

SEE ALSO

Top

GoogleHack home page - http://google-hack.sourceforge.net

Pratheepan Raveendranathan - http://www.d.umn.edu/~rave0029/research

Ted Pedersen - www.d.umn.edu./~tpederse

Google-Hack Maling List <google-hack-users@lists.sourceforge.net>

COPYRIGHT AND LICENSE

Top


WebService-GoogleHack documentation  | view source Contained in the WebService-GoogleHack distribution.