WWW::DuckDuckGo - Access to the DuckDuckGo APIs
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');
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.
Set to true will force the client to use https, so it will not fallback to http on failure.
Set the http agent name which the webserver gets. Defaults to WWW::DuckDuckGo
Set to true to disable safesearch.
Allow HTML in output. This is the default in DuckDuckGo, but not default here to maintain backwards compatibility.
A HashRef of extra GET params to pass with the query (documented on https://api.duckduckgo.com/)
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.
Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).
http://github.com/Getty/p5-www-duckduckgo Pull request and additional contributors are welcome
Torsten Raudssus <firstname.lastname@example.org> https://raudss.us/
Michael Smith <email@example.com>
This software is copyright (c) 2013 by DuckDuckGo, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.