NAME

WWW::DuckDuckGo - Access to the DuckDuckGo APIs

VERSION

version 0.013

SYNOPSIS

use WWW::DuckDuckGo;

my $duck = WWW::DuckDuckGo->new;

# request the Zero Click Info, you can also use ..->zci('duck duck go')
my $zeroclickinfo = $duck->zeroclickinfo('duck duck go');

# request the Zero Click Info of "duck duck go more stuff"
my $other_zeroclickinfo = $duck->zeroclickinfo('duck duck go','more stuff');

DESCRIPTION

This distribution gives you an easy access to the DuckDuckGo Zero Click Info API. It tries to connect via https first and falls back to http if there is a failure.

ATTRIBUTES

forcesecure

Set to true will force the client to use https, so it will not fallback to http on failure.

http_agent_name

Set the http agent name which the webserver gets. Defaults to WWW::DuckDuckGo

safeoff

Set to true to disable safesearch.

html

Allow HTML in output. This is the default in DuckDuckGo, but not default here to maintain backwards compatibility.

METHODS

$obj->zeroclickinfo

Arguments: @query_fields

Return value: WWW::DuckDuckGo::ZeroClickInfo

Returns the WWW::DuckDuckGo::ZeroClickInfo of the query specified by the parameters. If you give several parameters they will get joined with an empty space.

ATTRIBUTES

METHODS

SUPPORT

IRC

Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).

Repository

http://github.com/Getty/p5-www-duckduckgo
Pull request and additional contributors are welcome

Issue Tracker

http://github.com/Getty/p5-www-duckduckgo/issues

AUTHORS

  • Torsten Raudssus <torsten@raudssus.de>

  • Michael Smith <crazedpsyc@duckduckgo.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Raudssus Social Software.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.