WWW::DuckDuckGo - Access to the DuckDuckGo APIs
version 0.016
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/)
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.
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
Torsten Raudssus <torsten@raudss.us> https://raudss.us/
Michael Smith <crazedpsyc@duckduckgo.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.
To install WWW::DuckDuckGo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::DuckDuckGo
CPAN shell
perl -MCPAN -e shell install WWW::DuckDuckGo
For more information on module installation, please visit the detailed CPAN module installation guide.