1WWW::DuckDuckGo(3)    User Contributed Perl Documentation   WWW::DuckDuckGo(3)
2
3
4

NAME

6       WWW::DuckDuckGo - Access to the DuckDuckGo APIs
7

VERSION

9       version 0.016
10

SYNOPSIS

12         use WWW::DuckDuckGo;
13
14         my $duck = WWW::DuckDuckGo->new;
15
16         # request the Zero Click Info, you can also use ..->zci('duck duck go')
17         my $zeroclickinfo = $duck->zeroclickinfo('duck duck go');
18
19         # request the Zero Click Info of "duck duck go more stuff"
20         my $other_zeroclickinfo = $duck->zeroclickinfo('duck duck go','more stuff');
21

DESCRIPTION

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

ATTRIBUTES

28   forcesecure
29       Set to true will force the client to use https, so it will not fallback
30       to http on failure.
31
32   http_agent_name
33       Set the http agent name which the webserver gets. Defaults to
34       WWW::DuckDuckGo
35
36   safeoff
37       Set to true to disable safesearch.
38
39   html
40       Allow HTML in output. This is the default in DuckDuckGo, but not
41       default here to maintain backwards compatibility.
42
43   params
44       A HashRef of extra GET params to pass with the query (documented on
45       https://api.duckduckgo.com/)
46

METHODS

48   $obj->zeroclickinfo
49       Arguments: @query_fields
50
51       Return value: WWW::DuckDuckGo::ZeroClickInfo
52
53       Returns the WWW::DuckDuckGo::ZeroClickInfo of the query specified by
54       the parameters. If you give several parameters they will get joined
55       with an empty space.
56

ATTRIBUTES

METHODS

SUPPORT

60       IRC
61
62         Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).
63
64       Repository
65
66         http://github.com/Getty/p5-www-duckduckgo
67         Pull request and additional contributors are welcome
68
69       Issue Tracker
70
71         http://github.com/Getty/p5-www-duckduckgo/issues
72

AUTHORS

74       ·   Torsten Raudssus <torsten@raudss.us> <https://raudss.us/>
75
76       ·   Michael Smith <crazedpsyc@duckduckgo.com>
77
79       This software is copyright (c) 2013 by DuckDuckGo, Inc.
80       <https://duckduckgo.com/>.
81
82       This is free software; you can redistribute it and/or modify it under
83       the same terms as the Perl 5 programming language system itself.
84
85
86
87perl v5.32.0                      2020-07-28                WWW::DuckDuckGo(3)
Impressum