WWW::IBM::Search(3)

NAME
WWW::IBM::Search - API to IBM Search

VERSION
Version 0.01

SYNOPSIS
    use WWW::IBM::Search;

    my $ibm = WWW::IBM::Search->new(
                where           =>      'United States',
                language        =>      'English',
                display         =>      25,
        ;
    my $results = $ibm->search('+perl +developerworks');
    foreach my $result (@{ $results }) {
        print $result->{'title'},"\t", print $result->{'uri'},"\n";
    }
    ...

METHODS

  new
Returns a new WWW::IBM::Search search object. Here are the parms:

        * where => IBM default(United States)
        You can specify in what IBM the search will be done, the IBMs:
Worldwide
Anguilla
Antigua and Barbuda
Argentina
Aruba
Australia
Austria
Bahamas
Bahrain
Bangladesh
Barbados
Belgium
Bermuda
Bolivia
Brazil
British
Bulgaria
Canada
Cayman Islands
Chile
China
Colombia
Croatia
Cyprus
Czech Republic
Denmark
Dominica
Ecuador
Egypt
Estonia
Finland
France
Germany
Greece
Grenada
Guyana
Hong Kong
Hungary
India
Indonesia
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Korea, Republic of
Kuwait
Latvia
Lebanon
Lithuania
Malaysia
Mexico
Montserrat
Netherlands
Netherlands Antilles
New Zealand
Norway
Oman
Pakistan
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Romania
Russian Federation
Saint Kitts and Nevis
Saint Lucia
Saint Vincent and the Grenadines
Saudi Arabia
Serbia
Singapore
Slovakia
Slovenia
South Africa
Spain
Sri Lanka
Suriname
Sweden
Switzerland
Taiwan
Thailand
Trinidad and Tobago
Turkey
Turks and Caicos Islands
Ukraine
United Arab Emirates
United Kingdom
United States
Uruguay
Venezuela
Viet Nam
Virgin Islands

        * language => "language" default(English)
        Your language:
Any
Bulgarian
ChineseS (simplified)
ChineseT (traditional)
Croatian
Czech
Danish
Dutch
English
Estonian
Finnish
French
German
Greek
Hebrew
Hungarian
Italian
Japanese
Korean
Latvian
Lithuanian
Norwegian
Polish
Portuguese
Romanian
Russian
Slovak
Slovenian
Spanish
Swedish
Turkish
Ukrainian

        * display => number default(10)
        The number of results per page:
10
25
50
75
100

        * next_page => [0|1] default (0)
        When you get the result, goes to the next page or not.

        * how => "how" default (all of the words)
        Provide how the search will be done:
all of the words
any of the words
he exact phrase

  search
You give the "search" like param, this function will return an array ref.

    my $results = $ibm->search('+perl +developerworks');
    foreach my $result (@{ $results }) {
        print $result->{'title'},"\n", print $result->{'uri'},"\n",print $result->{'content_text'},"\n";
    }

The attributes bellow show what you can to use with it.

  title
print $result->{'title'} Return the name from title result.

  uri
print $result->{'uri'} Return the uri from result.

  content_text
print $result->{'content_text'} Return the content as text from result.

  content_html
print $result->{'content_html'} Return the content as HTML from result.

  html
print $result->{'html'} Return a literal HTML from result.

AUTHOR
Daniel de Oliveira Mantovani, "<daniel.oliveira.mantovani at gmail.com>"

BUGS
Please report any bugs or feature requests to "bug-www-ibm at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-IBM-Search>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT
You can find documentation for this module with the perldoc command.

    perldoc WWW::IBM::Search

You can also look for information at:

•   RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-IBM-Search>

•   AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/WWW-IBM-Search>

•   CPAN Ratings

    <http://cpanratings.perl.org/d/WWW-IBM-Search>

•   Search CPAN

    <http://search.cpan.org/dist/WWW-IBM-Search/>

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT
Copyright 2010 Daniel de Oliveira Mantovani.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.