100+ results for 'api duckduckgo com'
Not the results you expected?
Rainfall.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 81 lines
9 description "Shows annual rainfall";
10 name "Rainfall";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Rainfall.pm";
12 topics "everyday";
13 category "geography";
14 attribution github => ['https://github.com/chrisjwilsoncom', 'chrisjwilsoncom'];
15 triggers any => "rainfall", "rainfall in", "annual rainfall", "annual rainfall in", "average rainfall", "average annual rainfall", "average rainfall in";
17 spice from => '([^/]+)/?(?:([^/]+)/?(?:([^/]+)|)|)';
18 spice to => 'http://api.worldbank.org/countries/$1/indicators/AG.LND.PRCP.MM?&date=$2&format=json';
19 spice wrap_jsonp_callback => 1;
InTheaters.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 107 lines
8 description "Current movies from Rotten Tomatoes";
9 name "InTheaters";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/InTheaters.pm";
11 icon_url "/i/www.rottentomatoes.com.ico";
12 topics "entertainment";
13 category "entertainment";
14 attribution github => ['https://github.com/jagtalon','jagtalon'],
15 twitter => ['http://twitter.com/juantalon','juantalon'];
18 triggers any => 'movie', 'movies', 'theaters', 'theatres', 'showing', 'something', 'watch', 'opening', 'see';
19 spice from => '(.*?)/(.*)';
20 spice to => 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/$1.json?country=$2&apikey={{ENV{DDG_SPICE_ROTTEN_APIKEY}}}&callback={{callback}}&page_limit=12&limit=12';
22 # Uses $loc so needs to not cache back end.
modes.md (https://bitbucket.org/ybozkurt12/n11keytorc.git) Markdown · 53 lines
8 # How to use WebdriverIO
10 WebdriverIO can be used for various purposes. It implements the Webdriver protocol API and can run browser in an automated way. The framework is designed to work in any arbitrary environment and for any kind of task. It is independent from any 3rd party frameworks and only requires Node.js to run.
12 ### Standalone Mode
21 client
22 .init()
23 .url('https://duckduckgo.com/')
24 .setValue('#search_form_input_homepage', 'WebdriverIO')
25 .click('#search_button_homepage')
40 describe('DuckDuckGo search', function() {
41 it('searches for WebdriverIO', function() {
42 browser.url('https://duckduckgo.com/');
43 browser.setValue('#search_form_input_homepage', 'WebdriverIO');
44 browser.click('#search_button_homepage');
CONTRIBUTING.md (https://github.com/pardocz/zeroclickinfo-spice.git) Markdown · 83 lines
4 At DuckDuckGo, we truly appreciate our community members taking the time to
5 contribute to our open-source repositories. In an effort to ensure
6 contributions are easy for you to make and for us to manage, we have written
12 The new version of DuckDuckGo has launched public beta!
13 See the [what's new](https://github.com/duckduckgo/zeroclickinfo-spice/blob/bttf/BETA.md) for the current status and how you can contribute
14 to converting the Spice Instant Answers to the new API !
22 ## Submitting a **Bug** or **Suggestion**
24 - Firstly, please make sure the bug is related to the **Spice** repository. If this bug is about the DuckDuckGo API, or the relevancy of our search results, please visit our feedback page at <https://duckduckgo.com/feedback>. If you're unsure, its best to use the feedback page (your message will be passed along to the correct people).
26 - Check the **Spice** [issues](https://github.com/duckduckgo/zeroclickinfo-spice/issues) to see if an issue already exists for the given bug or suggestion
81 Check out the [Metadata documentation](https://dukgo.com/duckduckhack/metadata) for detailed instructions on how to include your name and links.
83 5. Go into GitHub and submit a [pull request!](http://help.github.com/send-pull-requests/) to the **Spice** repository, making sure to use the **Spice** repository's **[Pull Request Template](https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/pull_request_template_spice.md)**. This will let us know about your changes and start the conversation about integrating it into the live code.
index.html (https://github.com/adamobeng/adamobeng.com.git) HTML · 48 lines
1 <!--
2 https://encrypted.google.com/search?hl=en&q=CSS%20side%20by%20side%20divs
3 http://my.opera.com/GreyWyvern/blog/show.dml/1725165
4 http://www.webdevelopersnotes.com/tutorials/javascript/javascript_for_loop.php3
5 http://stackoverflow.com/questions/1134976/how-may-i-sort-a-list-alphabetically-using-jquery
6 http://www.pageresource.com/html/link3.htm
7 https://duckduckgo.com/?q=center+div
8 http://stackoverflow.com/questions/4123067/animating-slider-handle-when-altering-the-jquery-ui-slider-value-option
9 https://duckduckgo.com/?q=floating+div+CSS
10 http://weblogs.asp.net/jaredroberts/archive/2010/01/12/add-label-to-jquery-slider-handle.aspx
11 http://jqueryui.com/demos/slider/
13 http://docs.jquery.com/Tutorials:How_jQuery_Works
14 http://api.jquery.com/multiple-selector/
15 http://docs.jquery.com/UI/Slider
ZeroClickInfo.php (https://github.com/duckduckgo/php5-duckduckgo.git) PHP · 211 lines
w3m.rb (https://gitlab.com/jcsilkey/homebrew-core) Ruby · 54 lines
7 bottle do
8 sha256 "c6443287699a058e58ff0e378a8f6459370de79f89246ac7217e11f9f748abed" => :el_capitan
9 sha256 "57a644921789316e92cbc37d2e0c51eaf5591876992626a9bcf9f4a56c0e3897" => :yosemite
10 sha256 "e2972a26e7c734e6814257516ebda796e907df5787906c4144321fc63e70f1a1" => :mavericks
25 "--with-ssl=#{Formula["openssl"].opt_prefix}"
26 # Race condition in build reported in:
27 # https://github.com/Homebrew/homebrew/issues/12854
28 ENV.j1
29 system "make", "install"
32 test do
33 assert_match /DuckDuckGo/, shell_output("#{bin}/w3m -dump https://duckduckgo.com")
34 end
35 end
README.md (https://github.com/pardocz/zeroclickinfo-fathead.git) Markdown · 152 lines
5 -----
7 See https://github.com/duckduckgo/duckduckgo/wiki for a general overview on contributing to DuckDuckGo.
9 This repository is for contributing static, keyword based content to 0-click, e.g. getting a perl function reference when you search for perl split.
43 # This is the base domain where the source pages are located.
44 Domain: api.jquery.com
46 # This is what gets put in quotes next to the source
65 The general output fields are as follows. Check out http://duckduckgo.com/Perl for reference, which we will refer to in explaining the fields.
67 ```perl
Getartistid.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 35 lines
12 category "entertainment";
13 topics "entertainment", "everyday", "music";
14 # FIXME Point to the duckduckgo repository on pull.
15 code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Artists.pm";
16 attribution github => ["https://github.com/bradcater", "Brad Cater"],
17 twitter => ["https://twitter.com/bradcater", "bradcater"];
19 triggers start => "artists", "bands", "musicians";
21 spice to => 'http://api.songkick.com/api/3.0/search/artists.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
23 handle remainder => sub {
24 # If the query isn't blank, then use it for the API query.
25 if (length($_) > 0) {
26 if ($_ =~ /^like (.+)$/) {
ArtistTracks.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 32 lines
10 icon_url "/i/www.last.fm.ico";
11 source "Last.fm";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Lastfm/ArtistTracks.pm";
13 topics "entertainment", "music";
14 category "entertainment";
15 attribution github => ['https://github.com/jagtalon','Jag Talon'],
16 twitter => ['http://twitter.com/juantalon','Jag Talon'];
18 spice to => 'http://ws.audioscrobbler.com/2.0/?limit=5&format=json&method=artist.gettoptracks&artist=$1&autocorrect=1&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}';
20 #Queries like "songs by ben folds" and "ben folds songs"
README.md (https://github.com/BelkaDev/RofiFtw.git) Markdown · 75 lines
16 </br>
18 ### Requirements
23 ### Usage
24 Simply run the wrapper script for whichever API you'd want to handle the request </br>
25 <i>Example:</i> </br>
26 ` suggest youtube` </br>
36 <b>note:</b> most of them barely include a basic search function, they aren't in any way complete </br>
37 it's not hard to implement more options by reading through their documentations. </br>
38 it's also made easy to add a custom API to the list, move them to the /APIs directory and follow the existing declarations.
39 #### Intercepting results
40 this script does nothing but to grab your selection which can seem to be pointless on its own. </br>
AlternativeTo.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 52 lines
9 icon_url "/i/alternativeto.net.ico";
10 source "AlternativeTo";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/AlternativeTo.pm";
12 topics "everyday", "programming";
13 category "computing_tools";
14 attribution github => ['https://github.com/Getty','Torsten Raudssus'],
15 twitter => ['https://twitter.com/raudssus','raudssus'];
17 triggers start => "free","opensource","commercial";
18 triggers any => "alternative","alternatives","alternativeto";
20 spice from => '([^/]+)/(.*?)/([^/]*)';
21 spice to => 'http://api.alternativeto.net/software/$1/?platform=$2&license=$3&count=12&callback={{callback}}&key={{ENV{DDG_SPICE_ALTERNATIVETO_APIKEY}}}';
23 my %alternatives = (
REQUESTS.md (https://github.com/jordanmueller/zeroclickinfo-goodies.git) Markdown · 40 lines
6 * Poker hands/probabilities
7 * Javascript character codes
8 * More [easter eggs](https://duckduckgo.com/?q=answer+to+the+ultimate+question+of+life+the+universe+and+everything)
9 * A cheat sheet for all the goodies!
10 * Joke/Sad/Funny -- random joke
33 * [LIVE](http://duckduckgo.com/?q=binary+that) ([hunterlang](https://github.com/hunterlang)): binary ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/binary/goodie.pl))
34 * [LIVE](http://duckduckgo.com/?q=public+dns) ([warthurton](https://github.com/warthurton)): Public DNS servers ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/public_dns))
35 * [LIVE](http://duckduckgo.com/?q=private+network) ([warthurton](https://github.com/warthurton)): Private network IPs ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/private_network))
36 * [LIVE](http://duckduckgo.com/?q=guid) ([warthurton](https://github.com/warthurton)): GUID generator ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/guid/goodie.pl))
37 * [LIVE](http://duckduckgo.com/?q=throw+dice) ([warthurton](https://github.com/warthurton)): throw dice ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/dice/goodie.pl)).
38 * [LIVE](http://duckduckgo.com/?q=red+or+green+or+blue) ([warthurton](https://github.com/warthurton)): three way choice ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/abc/goodie.pl)).
39 * [LIVE](http://duckduckgo.com/?q=passphrase+4) ([hunterlang](https://github.com/hunterlang)): Passphrase ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/passphrase/)).
40 * [LIVE](http://duckduckgo.com/?q=golden+ratio+5%3A%3F) ([andrearonsen](https://github.com/andrearonsen)): Golden Ratio ([code](https://github.com/duckduckgo/zeroclickinfo-goodies/tree/master/golden_ratio/)).
README.md (https://gitlab.com/jslee1/zeroclickinfo-goodies) Markdown · 75 lines
7 **Instant Answers are an opportunity for anyone to create their own search results.**
9 Instant Answers appear on DuckDuckGo.com above ads and organic links, on [millions of searches](https://duckduckgo.com/traffic.html). Instant Answers are created by an open source community of developers [around the world](http://duckduckgo.meetup.com/) like you. Welcome!
11 You can find the [full documentation here](http://docs.duckduckhack.com). This is the repository for [one type of Instant Answers](http://docs.duckduckhack.com/welcome/determining-ia-type.html), called Goodies.
21 ## Improve a Live Instant Answer
23 We welcome new contributors to dive in and improve live Instant Answers. It's a great, hands-on way to learn how things work. Start by [setting up your development environment](http://docs.duckduckhack.com/welcome/setup-dev-environment.html).
25 You can see all "low-hanging fruit" issues neatly organized in one place on our [Live Issues Page](https://duck.co/ia/dev/issues?tag=lowhangingfruit), or get an overview of all [Instant Answers in development](https://duck.co/ia/dev/pipeline).
69 Want help? Need to think out loud?
71 [ Talk to us on Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email us](mailto:open@duckduckgo.com).
73 We're a digital community, but real people - we frequently meet up to hack together. Check out our [global meetups](http://duckduckgo.meetup.com/).
search.html (https://github.com/zombieFox/nightTab.git) HTML · 166 lines
70 </div>
71 <div class="form-wrap">
72 <input id="control-header-search-engine-duckduckgo" class="control-header-search-engine-duckduckgo" type="radio" name="control-header-search-engine" value="duckduckgo" tabindex="-1">
73 <label for="control-header-search-engine-duckduckgo"><span class="label-icon"></span> DuckDuckGo</label>
93 <div class="form-wrap">
94 <label for="control-header-search-engine-custom-name">Name</label>
95 <input id="control-header-search-engine-custom-name" class="control-header-search-engine-custom-name" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search engine name" tabindex="-1">
96 </div>
97 <div class="form-wrap">
98 <label for="control-header-search-engine-custom-url">URL</label>
99 <input id="control-header-search-engine-custom-url" class="control-header-search-engine-custom-url" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="https://" tabindex="-1">
100 </div>
101 <div class="form-wrap">
105 <div class="form-wrap">
106 <label for="control-header-search-engine-custom-queryname">Name attribute</label>
107 <input id="control-header-search-engine-custom-queryname" class="control-header-search-engine-custom-queryname" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="q" tabindex="-1">
108 </div>
109 <div class="form-wrap">
abstract.coffee (https://github.com/janx/hubot-scripts.git) CoffeeScript · 55 lines
26 module.exports = (robot) ->
27 robot.respond /(abs|abstract) (.+)/i, (res) ->
28 abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
29 res.http(abstract_url)
30 .header('User-Agent', 'Hubot Abstract Script')
43 # hubot abs astronomy
44 # Astronomy is the scientific study of celestial objects.
45 # http://duckduckgo.com/Astronomy
46 res.send topic.Text
47 res.send topic.FirstURL
49 # hubot abs contumacious
50 # contumacious definition: stubbornly disobedient.
51 # http://merriam-webster.com/dictionary/contumacious
52 res.send data.Definition
53 res.send data.DefinitionURL if data.DefinitionURL
index.html (https://gitlab.com/stanjanssen/homepage) HTML · 66 lines
6 <title>Home</title>
7 <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
8 <link href="https://fonts.googleapis.com/css?family=Jaldi" rel="stylesheet">
14 <div id="container">
15 <div class="row">
16 <form method="GET" action="https://duckduckgo.com/">
17 <input type="text" name="q" placeholder="Search DuckDuckGo..." id="duck" />
22 <div class="row">
23 <ul class="column">
24 <li><a href="https://reddit.com">Reddit</a></li>
25 <li><a href="https://tweakers.net">Tweakers</a></li>
26 <li><a href="http://encide.com">Encide</a></li>
27 <li><a href="https://gmail.com">Gmail</a></li>
28 <li><a href="https://calendar.google.com">Google Calendar</a></li>
CurrencyIn.pm (https://github.com/zoracon/zeroclickinfo-goodies.git) Perl · 91 lines
9 # In some countries there are more than one currency.
10 # For that reason values in hash are stored as arrays. (loaded from .txt as comma separated values )
11 # Example: %countries( "Zimbabwe"=>["A","B"], "Slovakia"=>["A"], ... )"
30 description 'find the official currency of a country';
31 name 'CurrencyIn';
32 code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CurrencyIn.pm';
33 category 'facts';
34 topics 'travel';
35 attribution github => ['http://github.com/Alchymista', 'Alchymista'];
37 triggers any => 'currency', 'currencies'; # User typed currency...
CONTRIBUTING.md (https://gitlab.com/jslee1/zeroclickinfo-goodies) Markdown · 42 lines
1 # Contributing an Instant Answer to DuckDuckGo.com
3 > You can find the full [DuckDuckHack documentation here](http://docs.duckduckhack.com)
7 1. **Before coding, [create an Instant Answer Page](https://duck.co/ia/new_ia) for your idea.** If you're fixing an existing Instant Answer, [locate its existing page](https://duck.co/ia).
9 > Instant Answer Pages are the "home base" for each Instant Answer. They are where the community plans, collaborates, and tracks the [life cycle](http://docs.duckduckhack.com/submitting/long-term.html) of all Instant Answers. It's where we aggregate pull requests, issues, attribution, and feedback.
11 2. **Hack away, keeping the [Instant Answer Production Guidelines](http://docs.duckduckhack.com/submitting/checklist.html) in mind.**
15 > Make sure to paste your Instant Answer page URL in the description. This will automatically link the two.
17 We're excited to meet you and support you along the way - and it's never too early to say hello. Join us on [Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email](mailto:open@duckduckgo.com).
19 *The opportunities to contribute don't stop here. Learn about [keeping your IA awesome](http://docs.duckduckhack.com/submitting/long-term.html).*
35 Include the issue number in the description (conveniently, this will automatically resolve the issue upon merging). Describe your motivation, thought process, and solution in the description. For example:
37 - "**Fixes #2038.** The images used by the API are very large and don't change often. I've but a smaller version of each image (and a 2x version for retina screens) in the share directory. The callback will try and load a local image based on the astronauts name and fallback to using the API's image if one does not exist."
39 **Finally, don't forget to paste the relevant [Instant Answer Page URL](https://duck.co/ia/new_ia) in the description field**, while creating new pull requests. This will automatically link the two.
gigahorse-030.ja.md (https://github.com/eed3si9n/eed3si9n.com.git) Markdown · 64 lines
12 [okhttp]: http://square.github.io/okhttp/
14 Gigahorse 0.3.0 をリリースした。Gigahorse が何かは[ドキュメンテーション](http://eed3si9n.com/gigahorse/ja/)をみてほしい。
16 ### OkHttp サポート
41 ```scala
42 scala> val r = Gigahorse.url("http://api.duckduckgo.com").get.
43 | addQueryString(
44 | "q" -> "1 + 1",
45 | "format" -> "json"
46 | )
47 r: gigahorse.Request = Request(http://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1), format -> List(json)), None, None, None, None, None, None)
49 scala> val f = http.run(r, { res: FullResponse =>
BitcoinBalance.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 34 lines
1 package DDG::Spice::BitcoinBalance;
2 # ABSTRACT: Displays the balance of a Bitcoin address from the Chain.com API.
4 use DDG::Spice;
9 source "http://chain.com";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBalance.pm";
11 topics "economy_and_finance";
12 category "finance";
13 icon_url "https://chain.com/chain32x32.ico";
15 attribution github => ['https://github.com/chain-engineering','chain.com'],
16 email => ['hello@chain.com','hello@chain.com'],
21 # This regular expression identifies the unique properties of a Bitcoin Address.
23 spice to => 'https://api.chain.com/v1/bitcoin/addresses/$1?key={{ENV{DDG_SPICE_BITCOIN_APIKEY}}}';
24 # The Chain API requires an API key. Chain has granted the spice a free account with unlimited access. We can provide this to DuckDuckGo before release.
links.rb (https://gitlab.com/0072016/homebrew-core) Ruby · 51 lines
1 class Links < Formula
2 desc "Lynx-like WWW browser that supports tables, menus, etc."
3 homepage "http://links.twibright.com/"
4 # Switch url & mirror back over when twibright is responsive.
5 url "https://mirrors.ocf.berkeley.edu/debian/pool/main/l/links2/links2_2.13.orig.tar.bz2"
6 mirror "http://links.twibright.com/download/links-2.13.tar.bz2"
7 sha256 "c252095334a3b199fa791c6f9a9affe2839a7fbd536685ab07851cb7efaa4405"
48 test do
49 system bin/"links", "-dump", "https://duckduckgo.com"
50 end
51 end
posts_provider.dart (https://github.com/usman18/Flutter-UI-Kit.git) Dart · 56 lines
5 static final List<Post> posts = [
6 Post(username: "jayshetty", likes: "167", description: "This is some dummy text. I am trying to make it as long as possible. It is now as long as I want it to be :)",
7 imageUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2F4.bp.blogspot.com%2F-PFWH1Snjivc%2FTcOvq6r_FTI%2FAAAAAAAAARk%2FNM2FU-pG0qQ%2Fs1600%2F1304571150958.png&f=1&nofb=1",
8 profilePicUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fyt3.ggpht.com%2Fa-%2FACSszfGEe047SPYy61ySW-LmiOlBdpSNqoVouXdogQ%3Ds900-mo-c-c0xffffffff-rj-k-no&f=1&nofb=1"
9 ),
10 Post(username: "the.holistic.psychologist", likes: "222", description: "This is some dummy text. I am trying to make it as long as possible. It is now as long as I want it to be :)",
11 imageUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPaeygRScL0E%2Fmaxresdefault.jpg&f=1&nofb=1",
12 profilePicUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwhole30.com%2Fwp-content%2Fuploads%2F2019%2F07%2Fprofile-nicoleLePera.jpg&f=1&nofb=1",
13 ),
14 Post(username: "the.holistic.psychologist", likes: "562", description: "This is some dummy text. I am trying to make it as long as possible. It is now as long as I want it to be :)",
15 imageUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxgTwHQjQsPc%2Fmaxresdefault.jpg&f=1&nofb=1",
16 profilePicUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse4.mm.bing.net%2Fth%3Fid%3DOIP.Q0KP6XbcerTppngcKe61sAAAAA%26pid%3DApi&f=1",
17 ),
18 Post(username: "jayshetty", likes: "167", description: "This is some dummy text. I am trying to make it as long as possible. It is now as long as I want it to be :)",
19 imageUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2F4.bp.blogspot.com%2F-PFWH1Snjivc%2FTcOvq6r_FTI%2FAAAAAAAAARk%2FNM2FU-pG0qQ%2Fs1600%2F1304571150958.png&f=1&nofb=1",
20 profilePicUrl: "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fyt3.ggpht.com%2Fa-%2FACSszfGEe047SPYy61ySW-LmiOlBdpSNqoVouXdogQ%3Ds900-mo-c-c0xffffffff-rj-k-no&f=1&nofb=1"
README.md (https://gitlab.com/spice/spice-space) Markdown · 67 lines
8 Author | Talha Mansoor
9 ----------------|-----
10 Author Email | talha131@gmail.com
11 Author Homepage | http://onCrashReboot.com
12 Github Account | https://github.com/talha131
14 Why do you need it?
15 ===================
17 Static sites do not offer search feature out of the box. [Tipue Search](http://www.tipue.com/search/)
18 is a jQuery plugin that search the static site without using any third party service, like DuckDuckGo or Google.
20 Tipue Search offers 4 search modes. Its [JSON search mode](http://www.tipue.com/search/docs/json/) is the best search mode
21 especially for large sites.
answer.lua (https://github.com/wrxck/mattata.git) Lua · 57 lines
1 --[[
2 Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
3 This code is licensed under the MIT. See LICENSE for details.
4 ]]
13 function answer:init()
14 answer.commands = mattata.commands(self.info.username):command('answer').table
15 answer.help = '/answer <query> - Provides a quick answer to the given query. Results provided by DuckDuckGo.'
16 answer.url = 'https://api.duckduckgo.com/?format=json&pretty=0&q='
17 end
45 end
46 via = 'Via ' .. via .. '.'
47 if body:find(' /wiki ') then -- If we're re-directing them to the Wikipedia command, we don't want to give them a via message.
48 return mattata.send_reply(message, 'I couldn\'t find an answer for that, try /wiki ' .. heading .. '.')
49 end
duckduckgo.py (https://github.com/sameenjalal/PennApps.git) Python · 164 lines
9 def query(query, useragent='python-duckduckgo 0.1'):
10 """
11 Query Duck Duck Go, returning a Results object.
22 """
23 params = urllib.urlencode({'q': query, 'o': 'x'})
24 url = 'http://duckduckgo.com/?' + params
26 request = urllib2.Request(url, headers={'User-Agent': useragent})
121 import webbrowser
123 webbrowser.open("http://duckduckgo.com/?%s" % urllib.urlencode(
124 dict(q=q)), new=2)
assertion-libraries.md (https://github.com/FluentLenium/FluentLenium.git) Markdown · 129 lines
12 ## Supported Assertions Libraries
13 - [AssertJ (recommended)](#assertj)
14 - [Junit](#junit)
15 - [Hamcrest](#hamcrest)
18 ## AssertJ
20 We recommend to use AssertJ because we extend it with FluentWebElement and FluentList custom assertions.
22 - Import this additional maven dependency.
35 ```java
36 import static org.assertj.core.api.Assertions.*;
37 import static org.fluentlenium.assertj.FluentLeniumAssertions.*;
38 ```
127 ```
129 check the [example](https://github.com/FluentLenium/FluentLenium/blob/develop/examples/kotest/src/test/kotlin/org/fluentlenium/example/kotest/DuckDuckGoSpec.kt) and the [tests](../../fluentlenium-kotest-assertions) for usage examples.
RxInfo.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 24 lines
6 name "RxInfo";
7 source "C3PI RxImageAccess RESTful API";
8 description "Search for prespection and over the counter solid dosage pharmaceutical by NDC and characteristics (shape, color, imprint).";
9 primary_example_queries "pill red round", "rxinfo 68180-0481-01", "pill LL blue";
10 category "special";
11 topics "everyday", "special_interest";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/RxInfo.pm";
13 attribution web => ['http://www.medicosconsultants.com', 'Medicos Consultants, LLC'];
15 triggers startend => 'pill', 'rxinfo', 'capsule', 'tablet', 'softgel', 'caplets';
17 spice to => 'http://rximage.nlm.nih.gov/api/rximage/1/rxbase?resolution=300&includeIngredients=true&parse=$1';
18 spice wrap_jsonp_callback => 1;
AsyncFirstController.cs (https://github.com/aspnet/Docs.git) C# · 136 lines
7 namespace performance_best_practices.Controllers
8 {
9 [Route("api/[controller]")]
10 [ApiController]
18 var query1 = SearchAsync(SearchEngine.Google, query);
19 var query2 = SearchAsync(SearchEngine.Bing, query);
20 var query3 = SearchAsync(SearchEngine.DuckDuckGo, query);
22 await Task.WhenAll(query1, query2, query3);
26 var results3 = await query3;
28 return SearchResults.Combine(results1, results2, results3);
29 }
72 path);
73 var query2 = SearchAsync(SearchEngine.Bing, query, path);
74 var query3 = SearchAsync(SearchEngine.DuckDuckGo, query, path);
76 await Task.WhenAll(query1, query2, query3);
ArtistAlbum.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 38 lines
9 icon_url "/i/www.last.fm.ico";
10 source "Last.fm";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Lastfm/ArtistAlbum.pm";
12 topics "entertainment", "music";
13 category "entertainment";
14 attribution github => ['https://github.com/jagtalon','Jag Talon'],
15 twitter => ['http://twitter.com/juantalon','Jag Talon'];
17 spice to => 'http://ws.audioscrobbler.com/2.0/?limit=5&format=json&method=artist.gettopalbums&artist=$1&autocorrect=1&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}';
19 my $synonyms = "albums?|records?|cds?";
BitcoinBlock.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 35 lines
1 package DDG::Spice::BitcoinBlock;
2 # ABSTRACT: Displays information about a bitcoin block using the biteasy.com API.
4 use DDG::Spice;
10 description "Display information about a Bitcoin block";
11 name "Bitcoin Block Info";
12 source "https://api.biteasy.com";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBlock.pm";
16 icon_url "https://www.biteasy.com/favicon.ico";
18 attribution github => ['https://github.com/biteasy','biteasy.com'],
19 email => ['support@biteasy.com','info@biteasy.com'],
24 # This regular expression parses a valid bitcoin block
26 spice to => 'https://api.biteasy.com/blockchain/v1/blocks/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
28 spice wrap_jsonp_callback => 1;
ABC.pm (https://gitlab.com/0072016/zeroclickinfo-goodies) Perl · 75 lines
14 description 'make a random choice';
15 name 'ABC';
16 code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ABC.pm';
17 category 'random';
18 topics 'trivia';
40 # Easter egg. For queries like:
41 # 'choose duckduckgo or google or bing or something'
42 if (my @duck = grep { / \A (?: duck (?: duckgo )? | ddg ) \z /ix } @choices) {
43 return $duck[0]." (not random)", answer_type => 'egg';
ddg.py (https://github.com/ibid/ibid.git) Python · 59 lines
7 from ibid.utils import json_webservice
9 features = {'duckduckgo': {
10 'description': u'Retrieves results from DuckDuckGo',
15 class DDGAPISearch(Processor):
16 usage = u"""ddg[.<tld>] [for] <term>"""
17 features = ('duckduckgo',)
19 def _ddg_api_search(self, query, resultsize="large", country=None):
20 params = {
21 'q': query,
26 params['gl'] = country
28 return json_webservice('https://api.duckduckgo.com', params)
30 @match(r'^ddg(?:\.com?)?(?:\.([a-z]{2}))?\s+(?:for\s+)?(.+?)$')
README.md (https://github.com/Ajnasz/oh-my-zsh.git) Markdown · 75 lines
42 | cssflow | `http://www.cssflow.com/search?q=` |
43 | dartlang | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:` |
44 | emberjs | `https://www.google.com/search?as_sitesearch=emberjs.com/&as_q=` |
54 | npmjs | `https://www.npmjs.com/search?q=` |
55 | packagephobia | `https://packagephobia.now.sh/result?p=` |
56 | qunit | `https://api.qunitjs.com/?s=` |
57 | reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` |
58 | smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` |
59 | stackoverflow | `https://stackoverflow.com/search?q=` |
66 ## Fallback search behaviour
68 The plugin will use Google as a fallback if the docs site for a search context does not have a search function. You can set the fallback search engine to DuckDuckGo by setting `FRONTEND_SEARCH_FALLBACK='duckduckgo'` in your `~/.zshrc` file before Oh My Zsh is sourced.
70 ## Author
Movie.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 37 lines
7 description "Movie information from Rotten Tomatoes";
8 name "Movie";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Movie.pm";
10 icon_url "/i/www.rottentomatoes.com.ico";
11 topics "entertainment", "everyday";
12 category "entertainment";
13 attribution github => ['https://github.com/moollaza','Zaahir Moolla'],
14 twitter => ['https://twitter.com/zmoolla','zmoolla'];
16 spice proxy_cache_valid => "200 7d";
17 spice to => 'http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey={{ENV{DDG_SPICE_ROTTEN_APIKEY}}}&q=$1&page_limit=50&page=1&callback={{callback}}';
19 # It's important that 'movie info' precede 'movie' so that the handler
astrobin_apod.js (https://github.com/pardocz/zeroclickinfo-spice.git) JavaScript · 73 lines
9 // Fetch our json and pass to getScript
10 env.ddg_spice_astrobin_apod = function(api_result) {
11 if(!api_result) {
12 return Spice.failed('apod');
13 }
14 var getimageid = api_result.objects[0].image.split("/");
15 $.getScript("/js/spice/astrobin/fetch_id/" + getimageid[4]);
16 };
19 env.ddg_spice_astrobin_fetch_id = function(api_result) {
20 if (!api_result) {
30 itemType: "Astrophoto",
31 sourceName: "AstroBin",
32 sourceUrl: "http://www.astrobin.com/" + api_result.id
33 },
34 normalize: function(item) {
search-client.js (https://github.com/VarioLabs/ddg-api.js.git) JavaScript · 155 lines
1 /*!
2 * DuckDuckGo Search Client for Node.js
3 * Copyright(c) 2011 Sujal Shah <sujal@variolabs.com>
5 *
6 * Portions from or inspired by the twitter-node library by
7 * Jeff Waugh (https://github.com/jdub/node-twitter)
8 * including the constructor/options storage
9 *
47 * Base URL for API, includes the question mark
48 */
49 , baseUrl: "http://api.duckduckgo.com/?"
51 /*
52 * SSL Base URL for API, includes the question mark
53 */
54 , sslBaseUrl: "https://api.duckduckgo.com/?"
56 /*
Apod.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 27 lines
6 name "Apod";
7 source "http://www.astrobin.com";
8 description "Get astronomy image of day";
9 primary_example_queries "astronomy picture of the day";
12 icon_url "http://www.astrobin.com/favicon.ico";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Apod/Apod.pm";
14 attribution github => ["https://github.com/killerfish", "Usman Raza"],
15 twitter => ["https://twitter.com/f1shie", "Usman Raza"];
17 triggers start => "astronomy", "astrophoto";
19 spice to => 'http://www.astrobin.com/api/v1/imageoftheday/?limit=1&api_key={{ENV{DDG_SPICE_ASTROBIN_APIKEY}}}&api_secret={{ENV{DDG_SPICE_ASTROBIN_APISECRET}}}&format=json$1';
20 spice proxy_cache_valid => "200 60m";
21 spice wrap_jsonp_callback => 1;
Github.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
7 description "Github info";
8 name "Github";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Github.pm";
10 topics "programming", "web_design";
11 category "programming";
12 attribution web => ['http://dylansserver.com','Dylan Lloyd'],
13 email => ['dylan@dylansserver.com','Dylan Lloyd'];
15 triggers startend => "github";
16 spice to => 'https://api.github.com/legacy/repos/search/$1?callback={{callback}}';
17 spice proxy_cache_valid => '200 30d';
duckduck.go (git://github.com/ajanicij/goduckgo.git) Go · 183 lines
1 // Package goduckgo provides the functionality for using
2 // DuckDuckGo API. For the description of the API, visit
3 // http://duckduckgo.com/api.html.
15 )
17 var baseUrl = "https://api.duckduckgo.com/?q=%s&format=json&pretty=1%s"
19 // Message is a structure containing all the information returned by
151 }
153 // Do the HTTP requests against API and handle errors
154 func Do(url string) ([]byte, error) {
155 resp, err := http.Get(url)
166 }
168 // Query the API given a text query, returns a Message
169 func Query(query string) (*Message, error) {
170 ddgUrl := EncodeUrl(query)
2020-02-15-meetup-api-multiple-redirect-uris.md (https://gitlab.com/jamietanna/jvt.me) Markdown · 51 lines
1 ---
2 title: "Setting up Multiple `redirect_uri`s on the Meetup.com API"
3 description: "How to allow multiple `redirect_uri`s on your Meetup.com (OAuth2) API consumer."
12 image: https://media.jvt.me/aee708169e.png
13 ---
14 Since roughly September, I've been on-and-off working on [contributing a feature request](https://github.com/snarfed/bridgy/issues/873) to allow [Bridgy](https://brid.gy) to send RSVPs events from my personal website straight to Meetup.com.
16 In the last couple of weeks I've got to the final hurdle - getting this to work with Bridgy's core application, which performs a few OAuth2 code flows - authorizing "listen" functionality (which is not implemented), authorizing "publish" functionality (which I've added) and authorizing to disable publishing.
20 To make this these flows easier, Ryan has set up a number of pre-built handlers for these flows, each of which are on different endpoints.
22 However, the Meetup.com API does _not_ allow for multiple `redirect_uri`s, which has made this process much more complicated than it needed to be, and has been quite a painful learning experience.
24 Getting quite annoyed with the complexity overhead of this approach, I set about trying my DuckDuckGo-fu and seeing if I could find anything online, but to no avail.
49 ```
51 Hopefully this helps those of you still creating Meetup.com APIs, but I do wish that the API documentation would make it known that it's possible!
Drinks.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 47 lines
8 name "Drinks";
9 source "Drink Project";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Drinks.pm";
11 topics "food_and_drink";
12 category "entertainment";
13 attribution github => ['https://github.com/mutilator','mutilator'];
15 triggers any => "mix", "make";
16 triggers startend => "drink", "ingredients", "mixing", "making";
18 spice to => 'http://drinkproject.com/api/?type=json&name=$1&callback={{callback}}';
20 handle query_lc => sub {
Thesaurus.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 44 lines
9 name "BigHuge Thesaurus";
10 source "Big Huge Labs";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Thesaurus.pm";
12 topics "music", "words_and_games";
13 category "language";
14 attribution github => ['https://github.com/lactose','lactose'],
15 twitter => ['http://twitter.com/hackariah','zachariah'];
17 spice from => '([^/]+)/([^/]+)';
18 spice to => 'http://words.bighugelabs.com/api/2/{{ENV{DDG_SPICE_BIGHUGE_APIKEY}}}/$1/json?callback={{callback}}';
20 triggers startend => "synonyms", "synonym", "antonyms", "antonym", "related", "similar", "thesaurus";
Plos.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 35 lines
11 topics 'science';
12 icon_url 'http://www.plosone.org/images/favicon.ico';
13 code_url 'https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Plos.pm';
14 attribution twitter => 'nelas',
15 github => ['nelas', 'Bruno C. Vellutini'],
16 web => ['http://organelas.com/', 'organelas.com'];
18 triggers startend => 'plos', 'plos one', 'plosone', 'public library of science', 'plos journal', 'plos publications';
20 spice to => 'http://api.plos.org/search?q=$1&rows=10&wt=json'
21 . '&fl=id,title_display,author_display,journal,volume,issue,publication_date'
22 . '&api_key={{ENV{DDG_SPICE_PLOS_APIKEY}}}';
23 spice wrap_jsonp_callback => 1;
README.md (https://github.com/lewg/oh-my-zsh.git) Markdown · 74 lines
42 | cssflow | `http://www.cssflow.com/search?q=` |
43 | dartlang | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:` |
44 | emberjs | `https://www.google.com/search?as_sitesearch=emberjs.com/&as_q=` |
49 | jestjs | `https://www.google.com/search?as_sitesearch=jestjs.io&as_q=` |
50 | jquery | `https://api.jquery.com/?s=` |
51 | lodash | `https://devdocs.io/lodash/index#` |
52 | mdn | `https://developer.mozilla.org/search?q=` |
54 | npmjs | `https://www.npmjs.com/search?q=` |
55 | qunit | `https://api.qunitjs.com/?s=` |
56 | reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` |
57 | smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` |
58 | stackoverflow | `https://stackoverflow.com/search?q=` |
65 ## Fallback search behaviour
67 The plugin will use Google as a fallback if the docs site for a search context does not have a search function. You can set the fallback search engine to DuckDuckGo by setting `FRONTEND_SEARCH_FALLBACK='duckduckgo'` in your `~/.zshrc` file before Oh My Zsh is sourced.
69 ## Author
test_parseSubmissionURL.js (https://github.com/rillian/firefox.git) JavaScript · 148 lines
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5 * Tests getAlternateDomains API.
6 */
40 // Test the first engine, whose URLs use UTF-8 encoding.
41 let url = "http://www.google.com/search?foo=bar&q=caff%C3%A8";
42 let result = Services.search.parseSubmissionURL(url);
43 do_check_eq(result.engine, engine1);
102 "http://www.bacon.moz/search?q=").engine, null);
103 do_check_eq(Services.search.parseSubmissionURL(
104 "https://duckduckgo.com?q=test").engine, null);
105 do_check_eq(Services.search.parseSubmissionURL(
106 "https://duckduckgo.com/?q=test").engine, null);
WordMap.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 57 lines
10 category "reference";
11 topics "words_and_games", "everyday";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/WordMap.pm";
13 icon_url "/i/www.twinword.com.ico";
14 attribution web => ['http://twinword.com','Twinword Inc.'],
15 twitter => ['http://twitter.com/levelpump', '@levelpump'],
16 email => ['feedback@twinword.com','Twinword Inc.'];
18 spice to => 'http://duckduckgo.twinword.com/api/v2/context/user/duckduckgo/?entry=$1&api_key={{ENV{DDG_SPICE_WORDMAP_APIKEY}}}';
19 spice wrap_jsonp_callback => 1;
SearchCode.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 51 lines
5 name "SearchCode";
6 description "search through APIs and open source repositories";
7 source "Search[code]";
8 primary_example_queries "underscore.js bind";
10 category "reference";
11 topics "programming";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SearchCode.pm";
13 icon_url "/i/searchco.de.ico";
14 attribution twitter => ["https://twitter.com/boyter", "boyter"],
15 github => ["https://github.com/boyter", "Ben Boyter"];
17 # known bad queries
23 triggers startend => @triggers;
25 spice to => 'http://searchco.de/api/jsonp_search_IV/?q=$1&callback={{callback}}';
27 # use list of trigger words to create regex
DNS.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 69 lines
5 use Data::Validate::Domain qw(is_domain);
7 spice to => 'http://pro.viewdns.info/dnsrecord/?domain=$2&recordtype=$1&apikey={{ENV{DDG_SPICE_VIEWDNS_APIKEY}}}&output=json';
9 spice wrap_jsonp_callback => 1;
11 primary_example_queries 'MX records duckduckgo.com';
12 primary_example_queries 'dns records duckduckgo.com';
13 description 'IP address of domain';
14 name 'DNS';
15 attribution github => ['https://www.github.com/OndroNR', 'Ondrej Galbavy'],
16 twitter => ['https://www.twitter.com/OndroNR', 'Ondrej Galbavy'];
getDDG.java (https://github.com/mivanov/Iris-Voice-Automation.git) Java · 138 lines
1 package com.samir_ahmed.Iris;
3 import java.net.URLEncoder;
4 import java.util.concurrent.Callable;
6 import org.apache.commons.lang.StringEscapeUtils;
8 import com.google.gson.JsonObject;
12 /**
13 * getDDG : Callable class for querying duckduckgo.com
14 *
15 * Time: Ranges from 100ms to 400ms
98 // Safely encode the query as a URL
99 xQuery = URLEncoder.encode(Query,"UTF-8");
100 ddgURL = "http://api.duckduckgo.com/?q="+xQuery+"&format=json";
102 // Use Blocking IO with httpGET class
example_test.go (https://github.com/mafredri/cdp.git) Go · 139 lines
10 "time"
12 "github.com/mafredri/cdp"
13 "github.com/mafredri/cdp/devtool"
14 "github.com/mafredri/cdp/protocol/dom"
15 "github.com/mafredri/cdp/protocol/page"
16 "github.com/mafredri/cdp/rpcc"
17 )
63 navArgs := page.NewNavigateArgs("https://www.google.com").
64 SetReferrer("https://duckduckgo.com")
65 nav, err := c.Page.Navigate(ctx, navArgs)
66 if err != nil {
README.markdown (https://github.com/VarioLabs/ddg-api.js.git) Markdown · 86 lines
1 # DuckDuckGo Wrapper for Node.js
3 A very simple wrapper for the DuckDuckGo API (http://duckduckgo.com/api.html). Just simplifies an edge case error check and presents a simple way to set & reuse options.
5 Usage:
47 * Base URL for API, includes the question mark
48 */
49 , baseUrl: "http://api.duckduckgo.com/?"
51 /*
52 * SSL Base URL for API, includes the question mark
53 */
54 , sslBaseUrl: "https://api.duckduckgo.com/?"
56 /*
Song.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 42 lines
9 icon_url "/i/www.last.fm.ico";
10 source "Last.fm";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Lastfm/Song.pm";
12 topics "entertainment", "music";
13 category "entertainment";
14 attribution github => ['https://github.com/jagtalon','Jag Talon'],
15 twitter => ['http://twitter.com/juantalon','Jag Talon'];
17 spice to => 'http://ws.audioscrobbler.com/2.0/?format=json&method=track.getinfo&track=$1&artist=$2&autocorrect=1&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}';
18 spice from => '(?:([^/]*)/([^/]*)|)';
Shorten.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 34 lines
4 use DDG::Spice;
6 primary_example_queries "shorten http://www.duckduckgo.com/about.html";
7 secondary_example_queries "url shorten www.github.com/explore";
8 description "Shorten URLs using the is.gd API";
9 name "Shorten";
10 icon_url "/i/is.gd.ico";
11 source "Shorten";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Shorten.pm";
13 topics "social";
14 category "computing_tools";
15 attribution github => ['https://github.com/danjarvis','Dan Jarvis'],
16 twitter => ['http://twitter.com/danjarvis','danjarvis'];
abstract.coffee (https://gitlab.com/0072016/github-adsbot-app) CoffeeScript · 45 lines
8 # None
9 #
10 # Commands:
11 # hubot abstract <topic> - Prints a nice abstract of the given topic
12 #
16 module.exports = (robot) ->
17 robot.respond /(abs|abstract) (.+)/i, (res) ->
18 abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
19 res.http(abstract_url)
20 .header('User-Agent', 'Hubot Abstract Script')
33 # hubot abs astronomy
34 # Astronomy is the scientific study of celestial objects.
35 # http://duckduckgo.com/Astronomy
36 res.send topic.Text
37 res.send topic.FirstURL
surfraw.rb (https://gitlab.com/jcsilkey/homebrew-core) Ruby · 37 lines
8 cellar :any_skip_relocation
9 revision 1
10 sha256 "df27f0dc82f9f2f4efa5fc33244d66063592d0c7afd3d2dd8db0466ec10492d0" => :el_capitan
11 sha256 "cf0dd3b14c4e8034f0d0766fb09978eac0f19fa41730d72ed1422a67c0b0d0b3" => :yosemite
12 sha256 "1291ba20882c2dc1fbb092782e943ab0b99ad3642fb73db207dadff1fc00c5fc" => :mavericks
34 output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
35 assert_equal "https://www.duckduckgo.com/lite/?q=homebrew\n", output
36 end
37 end
DetectLang.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 31 lines
6 primary_example_queries "detect language こんにちは";
7 secondary_example_queries "what language is como estas";
8 description "Detects the language";
9 name "Detect Language";
10 icon_url "/i/detectlanguage.com.ico";
11 source "Detect Language";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/DetectLang.pm";
13 topics "everyday", "words_and_games";
14 category "language";
16 web => ['http://ghedini.me', 'Alessandro Ghedini'];
18 spice to => 'http://ws.detectlanguage.com/0.2/detect?q=$1&key={{ENV{DDG_SPICE_DETECTLANGUAGE_APIKEY}}}';
19 spice wrap_jsonp_callback => 1;
useragents.py (https://gitlab.com/kissarat/wowenginecmd) Python · 30 lines
8 msnbot bingbot facebookexternalhit twitterbot twitmunin siteuptime twitterfeed zibb zyborg
9 spider crawler bot slurp fetcher fetch proxy perl checker check checkup index indexer
10 wordpress python mail.ru apple-pubsub java/1 wget httpclient bsalsa.com
11 butterfly larbin w3c_validator ia_archiver bsalsa.com nutch
12 screenshot-generator yandexblogs sitetruth.com yandexdirect crawler4j
13 webagent.wise-guys.nl intraweb webmaster@livejournal.com linkdex.com
14 linkpeek.com appengine-google hourlypress curl twitturls strawberryj.am
16 xmlrpc .php <?php xml-rpc PHP/5 pecl
17 movabletype mechanize ruby libwww lynx w3m ostrovok lwp- metauri
18 mailchimp.com openwave pagepeeker.com readability rss-harvester quicktime
19 seostats scraping safarizator webcollage loadimpact.com
21 .. watchmouse.com sniffer bodyground.ru anonymouse.org yandexmarket facebookplatform
22 ichiro parser resolver pingadmin ping-admin nmap embedly yahooysmcm pipes heritrix
23 duckduckgo.com typhoeus /etc rivva docomo enterprise_search kaz.kz ahrefsbot
24 urlsearchhook search.bot google-site user-agent verification
25 """
URLHelper.js (https://github.com/browserhtml/browserhtml.git) JavaScript · 144 lines
7 import {URL, nullURL} from './URL'
9 import type {URI} from '../Common/Prelude'
11 export const parse = (input:string):URL => {
93 const readSearchURL = input =>
94 `https://duckduckgo.com/html/?q=${encodeURIComponent(input)}`
96 const capitilize =
100 const readAboutURL = input =>
101 input === 'about:blank' ? input
102 : `${getBaseURI().toString()}components/About/${capitilize(input.replace('about:', ''))}/index.html`
104 export const read = (input:string):URI =>
Stocks.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 28 lines
6 description "Shows stock quote for a ticker";
7 name "Stocks";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Stocks.pm";
9 icon_url "/i/ycharts.com.ico";
16 triggers start => 'stock quote for', 'stock quote', 'stock price of', 'stock price';
18 spice to => 'http://ycharts.com/quotes/$1';
19 spice wrap_jsonp_callback => 1;
20 spice proxy_cache_valid => "418 1d";
22 handle remainder => sub {
23 # needs to be uppercase when it goes to charts api:
24 return uc $_ if $_;
25 return;
DuckSay.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 30 lines
10 category 'entertainment';
11 topics 'geek', 'words_and_games', 'entertainment';
12 code_url 'https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/DuckSay.pm';
13 attribution github => ['https://github.com/csytan', 'Chris Tan'];
17 spice is_unsafe => 1;
18 spice to => 'http://www.reddit.com/r/Jokes/search.json?q=selftext%3Aduck&restrict_sr=on&sort=hot&t=all&jsonp={{callback}}';
20 handle remainder => sub {
21 spice call_type => 'include';
22 if ($_ ne '') {
23 # Skip calling reddit's API if text is given
24 spice call_type => 'self';
25 return call;
CodeSearch.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 36 lines
5 triggers startend => "code", "example";
7 spice to => 'http://searchco.de/api/jsonp_codesearch_I/?q=$1&callback={{callback}}';
9 primary_example_queries "javascript console.log example";
12 icon_url "/i/searchco.de.ico";
13 source "search[code]";
14 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/CodeSearch.pm";
15 topics "sysadmin", "programming";
16 category "programming";
17 attribution github => ['https://github.com/boyter','Ben Boyter'],
18 twitter => ['http://twitter.com/boyter','boyter'];
Recipes.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 36 lines
1 package DDG::Spice::Recipes;
2 # ABSTRACT: Search for recipes on yummly.com
4 use DDG::Spice;
8 description 'Search for recipes';
9 name 'Recipes';
10 code_url 'https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Recipes.pm';
12 # removing line breaks from ingredients.txt file:
15 triggers any => ('recipe', 'recipes', keys(%ingredients));
17 spice to => 'http://api.yummly.com/v1/api/recipes?q=$1&requirePictures=true&maxResult=35&_app_id={{ENV{DDG_SPICE_YUMMLY_APPID}}}&_app_key={{ENV{DDG_SPICE_YUMMLY_APIKEY}}}&callback={{callback}}';
19 handle query_lc => sub {
search.rb (https://github.com/aibor/rib.git) Ruby · 90 lines
20 #desc 'Search on Wikipedia using the DNS API'
21 desc 'Search on Wikipedia using the Wikipedia API'
24 # %w(208.67.220.220 208.67.222.222 8.8.8.8)).join
25 #format gsearch(:google, ['site:wikipedia.org'] + args)
26 res = wikipedia_api(args, 1, bot.config.wiki_lang)
27 "#{res[2].first} - #{res[3].first}" if res.last.any?
28 end
53 when :ddg
54 keys.first.gsub!(/^[^!]/, '\\\\\&')
55 'https://duckduckgo.com/html?q=%s' % keys.join('+')
56 when :google
57 "https://www.google.com/search?hl=de&btnI=1&q=" +
73 WikiApiURL = 'https://%s.wikipedia.org/w/api.php?action=opensearch' +
74 '&search=%s&format=json&redirects=return&limit=%d'
API.php (https://github.com/duckduckgo/php5-duckduckgo.git) PHP · 163 lines
4 * @file DuckDuckGo/API.php
5 * This file provides the base class to interface with the DuckDuckGo API.
6 * It will also include any necessary classes.
7 * With this interface, you can currently only perform ZeroClickInfo queries.
8 * Simple example:
9 * $api = new DuckDuckGo\API();
10 * $info = $api->zeroClickQuery('Internet Relay Chat');
25 /**
26 * The API base URL. This defaults to api.duckduckgo.com.
27 */
28 public $baseURL;
57 $this->noHTML = FALSE;
58 $this->noDisambiguations = FALSE;
59 $this->baseURL = 'api.duckduckgo.com';
60 }
index.html (https://github.com/startpages/startpages.github.io.git) HTML · 94 lines
16 <body>
17 <style type="text/css" media="all">
18 @import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
19 html, body
20 { margin:0; padding:0; }
42 <div class="row">
43 <div class="column">
44 <a href="https://mail.google.com/mail/u/1/#inbox" class="envelope">
45 <i class="fa fa-envelope"></i>
46 </a>
47 </div>
48 <div class="column">
49 <a href="https://www.youtube.com/feed/subscriptions" class="youtube-play">
50 <i class="fa fa-youtube-play"></i>
51 </a>
87 </form>
88 <BR> <BR>
89 <form method="get" action="https://duckduckgo.com/?">
90 <input class='search' name='q' type='text' placeholder='DuckDuckGo'/>
safesearch.go (https://github.com/AdguardTeam/AdGuardHome.git) Go · 218 lines
15 "www.bing.com": "strict.bing.com",
17 "duckduckgo.com": "safe.duckduckgo.com",
18 "www.duckduckgo.com": "safe.duckduckgo.com",
19 "start.duckduckgo.com": "safe.duckduckgo.com",
21 "www.google.com": "forcesafesearch.google.com",
85 "www.google.com.gh": "forcesafesearch.google.com",
86 "www.google.com.gi": "forcesafesearch.google.com",
87 "www.google.gl": "forcesafesearch.google.com",
114 "www.google.co.kr": "forcesafesearch.google.com",
115 "www.google.com.kw": "forcesafesearch.google.com",
116 "www.google.kz": "forcesafesearch.google.com",
117 "www.google.la": "forcesafesearch.google.com",
MassOnTime.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 49 lines
7 description "Search for Catholic Religious Events";
8 name "MassOnTime";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/MassOnTime.pm";
10 icon_url "http://massontime.com/favicon.ico";
11 topics "special_interest";
12 category "reference";
13 attribution github => ['https://github.com/astine','astine'];
15 triggers any => "catholic";
17 spice is_cached => 1;
18 spice from => '([^/]*)/([^/]*)';
19 spice to => 'http://massontime.com/nearest/$1/10/json?address=$2&api-key={{ENV{DDG_SPICE_MASSONTIME_APIKEY}}}';
20 spice wrap_jsonp_callback => 1;
34 }
36 #MassOnTime API doesn't recognize 'church;, replace with 'parish'
37 $event_type = "parish" if $event_type eq "church";
Namecheap.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 66 lines
10 spice proxy_cache_valid => '418 1d';
12 my $namecheap_endpoint = 'http://api.namecheap.com/xml.response';
14 # environment variables:
15 # DDG_SPICE_NAMECHEAP_USERNAME : Namecheap API username
16 # DDG_SPICE_NAMECHEAP_APIKEY : Namecheap API key
17 # DDG_SPICE_NAMECHEAP_IP_ADDR : Allowed end-User IP address
18 my @query_list = (
19 ApiUser => '{{ENV{DDG_SPICE_NAMECHEAP_USERNAME}}}', # Username required to access the API
20 ApiKey => '{{ENV{DDG_SPICE_NAMECHEAP_APIKEY}}}', # Password required used to access the API
21 UserName => '{{ENV{DDG_SPICE_NAMECHEAP_USERNAME}}}', # same as ApiUser
22 Command => 'namecheap.domains.check', # API method
23 ClientIp => '0.0.0.0', # End-user IP address
24 DomainList => '$1', # argument to method
RandWord.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 31 lines
9 category "random";
10 topics "words_and_games", "everyday";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/RandWord.pm";
12 icon_url "/i/wordnik.com.ico";
13 attribution web => ['http://dylansserver.com','Dylan Lloyd'],
14 email => ['dylan@dylansserver.com','Dylan Lloyd'];
16 spice from => '(?:([0-9]+)\-([0-9]+)|)';
17 spice to => 'http://api.wordnik.com/v4/words.json/randomWord?minLength=$1&maxLength=$2&api_key={{ENV{DDG_SPICE_RANDWORD_APIKEY}}}&callback={{callback}}';
18 spice proxy_cache_valid => "418 1d";
Hayoo.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 26 lines
6 description "Search Haskell APIs";
7 name "Hayoo";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Hayoo.pm";
9 icon_url "/i/hackage.haskell.org.ico";
10 topics "programming", "sysadmin";
11 category "programming";
12 attribution github => ['https://github.com/headprogrammingczar','headprogrammingczar'];
14 triggers start => "hayoo", "haskell api", "haskell";
isync.rb (https://gitlab.com/jcsilkey/homebrew-core) Ruby · 42 lines
8 cellar :any
9 revision 1
10 sha256 "38fb0d21a245178886acb1262f57ddde284adbf889039baf3401bf2028d7cba7" => :el_capitan
11 sha256 "074b9295e7ac9773eafac5bdc20e32d42d8023ffccd275235d0cb72ff09574cf" => :yosemite
12 sha256 "147097d617448be4d6796bf189a05200c1afd738ad64fe05aa40c61db10b5194" => :mavericks
39 test do
40 system bin/"get-cert", "duckduckgo.com:443"
41 end
42 end
2019-12-17-xml-pretty-print.md (https://gitlab.com/jamietanna/jvt.me) Markdown · 58 lines
1 ---
2 title: "Pretty Printing XML on the Command-Line"
3 description: "How to use `xmllint` to pretty-print XML/HTML files."
4 tags:
7 - xml
8 - pretty-print
9 - command-line
10 license_code: Apache-2.0
11 license_prose: CC-BY-NC-SA-4.0
15 A couple of times recently I've found that I need to pretty-print XML - be that HTML or actual XML, but haven't found a great way from the command-line.
17 Fortunately [DuckDuckGo has an HTML Beautify setup](https://duckduckgo.com/?q=html+beautify&ia=answer) but that's not super safe for proprietary content, nor for automating the pretty-printing.
19 But as I found today, it turns out that the [`xmllint` command](https://linux.die.net/man/1/xmllint) can save us here.
23 ```xml
24 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>me.jvt.www</groupId> <artifactId>www-api</artifactId> <version>0.5.0-SNAPSHOT</version> <modules> <module>www-api-web</module> <module>www-api-acceptance</module> <module>www-api-core</module> <module>indieauth-spring-security</module> </modules> <packaging>pom</packaging> </project>
25 ```
gigahorse-030.md (https://github.com/eed3si9n/eed3si9n.com.git) Markdown · 63 lines
13 [okhttp]: http://square.github.io/okhttp/
15 Gigahorse 0.3.0 is now released. See [documentation](http://eed3si9n.com/gigahorse/) on what it is.
17 ### OkHttp support
41 ```scala
42 scala> val r = Gigahorse.url("http://api.duckduckgo.com").get.
43 | addQueryString(
44 | "q" -> "1 + 1",
45 | "format" -> "json"
46 | )
47 r: gigahorse.Request = Request(http://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1), format -> List(json)), None, None, None, None, None, None)
49 scala> val f = http.run(r, { res: FullResponse =>
CONTRIBUTING.md (https://gitlab.com/0072016/zeroclickinfo-goodies) Markdown · 72 lines
5 ## Getting Started
7 Before you can do anything, you first need a [GitHub account](https://github.com/signup/free). This is required because we use GitHub to handle all incoming *Pull Requests* (code modifications) and *Issues* (bug reports) which cannot be made without a GitHub account.
9 ## Submitting a **Bug** or **Suggestion**
11 - Firstly, please make sure the bug is related to the Goodie repository. If this bug is about the DuckDuckGo API, or the relevancy of our search results, please visit our feedback page at <https://duckduckgo.com/feedback>. If you're unsure, its best to use the feedback page (your message will be passed along to the correct people).
13 - Check the Goodie [issues](https://github.com/duckduckgo/zeroclickinfo-goodies/issues) to see if an issue already exists for the given bug or suggestion
49 ```
51 2. Get your commit history [how you like it](http://book.git-scm.com/4_interactive_rebasing.html).
53 ```shell
70 Check out the [Metadata documentation](https://dukgo.com/duckduckhack/metadata) for detailed instructions on how to include your name and links.
72 5. Go into GitHub and submit a [pull request!](http://help.github.com/send-pull-requests/) to the Goodie repository, making sure to use the Goodie repository's **[Pull Request Template](https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/pull_request_template_goodie.md)**. This will let us know about your changes and start the conversation about integrating it into the live code.
MainViewController.swift (https://github.com/kiavashfaisali/KFSwiftImageLoader.git) Swift · 119 lines
23 super.viewDidLoad()
25 loadDuckDuckGoResults()
26 }
29 func loadDuckDuckGoResults() {
30 let url = URL(string: "https://api.duckduckgo.com/?q=simpsons+characters&format=json")!
31 let request = URLRequest(url: url, cachePolicy: .returnCacheDataElseLoad, timeoutInterval: 60.0)
36 guard let data = data, error == nil else {
37 os_log("Error retrieving a response from the DuckDuckGo API: %{public}@", type: .error, error!.localizedDescription)
38 return
39 }
54 if self.imageURLStrings.count > 0 {
55 // Comment to not randomize the image ordering.
56 self.randomizeImages()
Display.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 33 lines
5 name "xkcd";
6 description "Get the latest xkcd comic";
7 source "xkcd";
8 primary_example_queries "xkcd";
12 icon_url "/i/xkcd.com.ico";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Xkcd.pm";
14 attribution github => ["https://github.com/sdball", "Stephen Ball"],
15 twitter => ["https://twitter.com/StephenBallNC", "StephenBallNC"];
17 triggers startend => "xkcd";
19 spice to => 'http://xkcd.com/$1/info.0.json';
20 spice wrap_jsonp_callback => 1;
pull_request_template_spice.md (https://github.com/pardocz/zeroclickinfo-spice.git) Markdown · 94 lines
1 # Spice Pull Request Template
3 Using this template will help us better understand your Instant Answer and assist you when necessary. Simply copy and paste the markdown below into the description of your GitHub pull request and complete as appropriate.
5 **What does your Instant Answer do?**
23 **Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
35 **What are the terms of use for the API? Will DuckDuckGo need specific authorization (e.g. an API key)? Are there any costs associated with API usage?**
Artist.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 51 lines
10 icon_url "/i/www.last.fm.ico";
11 source "Last.fm";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Lastfm/Artist.pm";
13 topics "entertainment", "music";
14 category "entertainment";
15 attribution github => ['https://github.com/jagtalon','Jag Talon'],
16 twitter => ['http://twitter.com/juantalon','Jag Talon'];
18 spice to => 'http://ws.audioscrobbler.com/2.0/?format=json&method=artist.getinfo&artist=$1&autocorrect=1&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}_$2';
19 spice from => '(?:([^/]*)/([^/]*)|)';
Nutrition.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 30 lines
6 description "Shows nutrition information for food items";
7 name "Nutrition";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Nutrition.pm";
9 icon_url "/i/nutritionix.com.ico";
18 # calls to their API so waiting for now):
19 spice to => 'http://api.nutritionix.com/v1_1/search/$1?results=0%3A20&brand_id=513fcc648110a4cafb90ca5e&fields=*&appId={{ENV{DDG_SPICE_NUTRITIONIX_APPID}}}&appKey={{ENV{DDG_SPICE_NUTRITIONIX_APIKEY}}}';
20 spice wrap_jsonp_callback => 1;
README.md (https://github.com/nikhilkumarsingh/content-downloader.git) Markdown · 182 lines
1 [](https://pypi.python.org/pypi/ctdl)
2 [](https://github.com/nikhilkumarsingh/content-downloader/blob/master/LICENSE.txt)
4 # content-downloader
8 
10 
12 ## Features
30 - There seem to be some issues with parallel progress bars in tqdm which have
31 been resolved in this [pull](https://github.com/tqdm/tqdm/pull/385). Until this pull is merged, please use my patch by running this command:
33 ```
144 - [ ] Implement unit testing
146 - [ ] Use DuckDuckgo API as an option
148 ## Want to contribute?
check_api.c (git://github.com/sahib/glyr.git) C · 236 lines
1 /***********************************************************
2 * This file is part of glyr
3 * + a command-line tool and library to download various sort of musicrelated metadata.
4 * + Copyright (C) [2011-2016] [Christopher Pahl]
5 * + Hosted at: https://github.com/sahib/glyr
19 **************************************************************/
21 #include "test_common.h"
22 #include <check.h>
23 #include <glib.h>
190 glyr_init();
191 atexit (glyr_cleanup);
192 GlyrMemCache * c = glyr_download ("www.duckduckgo.com",NULL);
193 fail_unless (c != NULL,"Could not load www.google.de");
194 glyr_cache_free (c);
SoundCloud.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 28 lines
10 topics "entertainment", "music";
11 category "entertainment";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SoundCloud.pm";
13 attribution web => ['http://jordanscales.com', 'Jordan Scales'],
14 email => ['scalesjordan@gmail.com', 'Jordan Scales'],
15 github => ['http://github.com/jdan', 'jdan'],
16 twitter => ['http://twitter.com/jdan', 'jdan'];
18 spice to => 'http://api.soundcloud.com/tracks.json?client_id={{ENV{DDG_SPICE_SOUNDCLOUD_APIKEY}}}&q=$1&limit=35&callback={{callback}}&filter=streamable';
20 triggers startend => "sc", "soundcloud", "sound cloud";
Geteventid.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 40 lines
7 name "Songkick Events";
8 description "See upcoming concerts.";
9 source "Songkick";
10 primary_example_queries "concerts in Boston";
12 category "entertainment";
13 topics "entertainment", "everyday", "music";
14 # FIXME Point to the duckduckgo repository on pull.
15 code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Events.pm";
16 attribution github => ["https://github.com/bradcater", "Brad Cater"],
17 twitter => ["https://twitter.com/bradcater", "bradcater"];
19 triggers startend => "concert", "concerts";
21 spice to => 'http://api.songkick.com/api/3.0/search/locations.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
23 handle remainder => sub {
Getid.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 51 lines
6 description "Search for full free episodes of all your favorite TV shows (USA only)";
7 name "Guidebox";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Guidebox/Getid.pm";
9 icon_url "/i/www.guidebox.com.ico";
10 topics "everyday", "entertainment", "social";
11 category "entertainment";
12 attribution github => ['https://github.com/adman','Adman'],
13 twitter => ['http://twitter.com/adman_X','adman_X'];
17 triggers any => "full episodes", "watch free", "full free episodes", "free episodes", "episodes", "recent episodes";
19 spice to => 'http://api-public.guidebox.com/v1.3/json/{{ENV{DDG_SPICE_GUIDEBOX_APIKEY}}}/search/title/$1';
21 spice wrap_jsonp_callback => 1;
PanelWebSearcherInformation.cs (https://github.com/ElevenPaths/FOCA.git) C# · 89 lines
23 public PanelWebSearcherInformation()
24 {
25 InitializeComponent();
26 panelEngineBingAPIInformation.Visible = false;
46 }
48 private void FillComboboxEngine()
49 {
50 cboEngine.Items.Clear();
55 private void comboBoxEngine_SelectedValueChanged(object sender, EventArgs e)
56 {
57 var comboBox = sender as ComboBox;
58 if (comboBox != null)
79 panelEngineGoogleAPIInformation.Visible = SelectedEngine == Engine.GoogleAPI;
80 panelEngineBingWebInformation.Visible = SelectedEngine == Engine.BingWeb;
81 panelEngineBingAPIInformation.Visible = SelectedEngine == Engine.BingAPI;
82 }
Bootic.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
10 icon_url "/i/www.bootic.com.ico";
11 source "Bootic";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Bootic.pm";
13 category "entertainment";
14 topics "special_interest";
15 attribution github => ['https://github.com/sparky','sparky'];
17 triggers any => 'bootic';
18 spice to => 'http://www.bootic.com/cgi-bin/api/search/products?output=json&callback={{callback}}&pretty_name=1&limit=48&smart=1&q=$1';
20 handle remainder => sub {
Book.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
6 description "Shows critic rating and a sample review of a book from publications like NY Times, NPR, Guardian.";
7 name "iDreambooks";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Book.pm";
9 category "reference";
10 topics "entertainment", "everyday";
12 spice to => 'http://idreambooks.com/api/books/reviews.json?api_key={{ENV{DDG_SPICE_BOOK_APIKEY}}}&bpq=10&q=$1';
14 triggers startend => "idreambooks", "book reviews", "book review";
surfraw.rb (https://github.com/Homebrew/homebrew-core.git) Ruby · 29 lines
11 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :high_sierra
12 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :sierra
13 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :el_capitan
14 end
26 output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
27 assert_equal "https://duckduckgo.com/lite/?q=homebrew", output.chomp
28 end
29 end
MacAddress.pm (git://github.com/duckduckgo/zeroclickinfo-goodies.git) Perl · 77 lines
NJT.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 50 lines
8 name "NJT";
9 source "NJT";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Transit/NJT.pm";
11 topics "everyday";
12 category "time_sensitive";
14 github => ['https://github.com/mattr555/', 'Matt Ramina'];
16 spice to => 'http://njt-api.appspot.com/njt/times/$1';
17 spice wrap_jsonp_callback => 1;
18 spice proxy_cache_valid => "418 1d";
searchengine_query.rb (https://bitbucket.org/King_DuckZ/assobiotech.git) Ruby · 82 lines
35 def getDuckDuckGoQuery()
36 return "https://duckduckgo.com/?q=" + getCleanText(@searchTerm)
37 end
39 def getDuckDuckGoOfficialPage()
40 strPage = getPage(getDuckDuckGoApiQuery())
41 #puts "Parsing " + getDuckDuckGoApiQuery() + "..."
57 def getDuckDuckGoApiQuery()
58 return "https://api.duckduckgo.com/?q=#{getCleanText(@searchTerm)}&format=json&pretty=0"
59 end
61 def getGoogleApiQuery()
62 return "https://www.googleapis.com/customsearch/v1?key=#{@googleDevKey}&q=#{getCleanText(@searchTerm)}&cx=017576662512468239146:omuauf_lfve&num=1&oe=utf8"
63 end
BitcoinTransaction.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 37 lines
1 package DDG::Spice::BitcoinTransaction;
2 # ABSTRACT: Displays information about a bitcoin transaction using the biteasy.com API.
4 use DDG::Spice;
10 description "Display information about a Bitcoin Transaction";
11 name "Bitcoin Transaction Info";
12 source "https://api.biteasy.com";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinTransaction.pm";
16 icon_url "https://www.biteasy.com/favicon.ico";
18 attribution github => ['https://github.com/biteasy','biteasy.com'],
19 email => ['support@biteasy.com','info@biteasy.com'],
24 # This regular expression parses a valid bitcoin block
26 spice to => 'https://api.biteasy.com/blockchain/v1/transactions/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
28 spice wrap_jsonp_callback => 1;
PATH.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 50 lines
8 name "PATH";
9 source "PATH";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/PATH.pm";
11 topics "everyday";
12 category "time_sensitive";
14 github => ['https://github.com/mattr555/', 'Matt Ramina'];
16 spice to => 'http://njt-api.appspot.com/path/times/$1';
17 spice wrap_jsonp_callback => 1;
18 spice proxy_cache_valid => "418 1d";
SteamDB.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
11 icon_url "/i/store.steampowered.com.ico";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SteamDB.pm";
13 attribution github => ["https://github.com/xPaw", "xPaw"],
14 twitter => ["https://twitter.com/thexpaw", "xPaw"];
16 triggers startend => "steamdb", "steam game", "steam app", "steam appid", "steam games";
18 spice to => 'http://steamdb.info/api/GetMetadata/?search=$1&jsonp={{callback}}';
20 handle remainder => sub {
rx_info.js (https://github.com/pardocz/zeroclickinfo-spice.git) JavaScript · 73 lines
6 var concatted = '';
8 // Protect against the chance ingredients aren't part of the API result
9 if (ingredients !== null && (typeof ingredients !== 'undefined')) {
10 for (var i = 0; i < ingredients.length; i++) {
22 env.ddg_spice_rx_info = function(api_result){
24 if (!api_result || api_result.error || !api_result.replyStatus || !api_result.replyStatus.totalImageCount || api_result.replyStatus.totalImageCount < 1) {
25 return Spice.failed('rx_info');
26 }
66 active: active,
67 inactive: inactive,
68 proxyImageUrl: "https://images.duckduckgo.com/iu/?u=" + encodeURIComponent(item.imageUrl) + "&f=1"
69 }
70 }
Goodreads.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 61 lines
11 # Goodreads API endpoint
12 my $api_key = '{{ENV{DDG_SPICE_GOODREADS_APIKEY}}}';
13 my $book_search_endpoint =
14 uri_escape('https://www.goodreads.com/search/index.xml?key=')
17 . uri_escape('&q=') . '$2';
19 spice to => 'https://duckduckgo.com/x.js?u=' . $book_search_endpoint;
20 spice wrap_jsonp_callback => 1;
23 spice alt_to => {
24 goodreads_book_details => {
25 to => 'https://duckduckgo.com/x.js?u='
26 . uri_escape("https://www.goodreads.com/book/show/") . '$1'
32 is_cached => 1,
33 proxy_cache_valid => '200 30d',
34 to => 'https://duckduckgo.com/m.js?q=$1'
35 }
36 };
03-processing.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 89 lines
33 val http = Gigahorse.http(Gigahorse.config)
35 val r = Gigahorse.url("https://api.duckduckgo.com").get.
36 addQueryString(
37 "q" -> "1 + 1"
52 `Either[Throwable, A]` に持ち上げるということが行われる。
54 <http://getstatuscode.com/> という便利なウェブサイトがあって、これは
55 任意の HTTP ステータスを返すことができる。失敗した `Future` に対してブロックするとどうなるかをみてみよう。
57 ```scala
58 val r = Gigahorse.url("http://getstatuscode.com/500")
59 val f = http.run(r, Gigahorse.asString)
60 Await.result(f, 120.seconds)
README.md (https://gitlab.com/tcnj/uuid-bot) Markdown · 59 lines
9 Create an instance of the agent, passing the options hash through to the node Agent constructor. These options are in turn passed along to `createConnection()`. The KeepAliveAgent constructor does not use the options itself. The option you are most likely to change is `maxSockets`, which defaults to 5.
11 To use the agent instance, set it in the `agent` field of the options passed to `http.request()` or `http.get()`. See the [http.request() documentation](http://nodejs.org/api/http.html#http_http_request_options_callback) for details.
13 __new KeepAliveAgent.Secure(*options-hash*)__
41 var getOptions = {
42 hostname: 'www.duckduckgo.com',
43 port: 443,
44 path: '/?q=unicorns',
53 ## See Also
55 For other implementations, see [agentkeepalive](https://github.com/TBEDP/agentkeepalive) and the [request](https://github.com/mikeal/request) module's [ForeverAgent](https://github.com/mikeal/request/blob/master/forever.js).
57 ## Licence
polling.py (https://github.com/j3ssie/Osmedeus.git) Python · 81 lines
40 module = options.get('CURRENT_MODULE', False)
42 url = options.get('REMOTE_API') + "/api/activities/clear/"
44 body = {
59 # parsing command
60 def poll_status(options, forced=False):
61 # /api/activities/get/?workspace=duckduckgo.com&modules=SubdomainScanning
62 ws = utils.get_workspace(options=options)
63 module = options.get('CURRENT_MODULE', False)
64 if module:
65 url = options.get('REMOTE_API') + "/api/activities/get/?workspace={0}&module={1}".format(ws, module)
66 else:
67 url = options.get('REMOTE_API') + "/api/activities/get/?workspace={0}".format(ws)
changing-the-default-search-engine.patch (https://gitlab.com/parabola/abslibre_abslibre) Patch · 40 lines
15 -browser.search.order.3=
16 +browser.search.order.1=searx
17 +browser.search.order.2=DuckDuckGo HTML
18 +browser.search.order.3=DuckDuckGo Lite
20 # To make mapit buttons to disappear in the addressbook, specify empty string. For example:
21 # mail.addr_book.mapit_url.format=
22 @@ -23,14 +23,12 @@ browser.search.order.3=
23 # @ZI == zip code
24 # @CO == country
25 # Default map service:
26 -mail.addr_book.mapit_url.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
27 +mail.addr_book.mapit_url.format=http://nominatim.openstreetmap.org/search.php?polygon=1&q=@A1%2C@A2%2C@CI%2C@ST%2C@ZI%2C@CO
29 -mail.addr_book.mapit_url.1.name=Google Maps
30 -mail.addr_book.mapit_url.1.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
31 -mail.addr_book.mapit_url.2.name=OpenStreetMap
Octopart.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 23 lines
7 description "Searches parts from Octopart.";
8 name "Octopart";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Octopart.pm";
10 icon_url "/i/octopart.com.ico";
11 topics "special_interest", "geek";
12 category "special";
13 attribution github => ['https://github.com/bnewbold', 'bnewbold'];
15 triggers any => "datasheet", "specs", "octopart";
17 spice to => 'http://octopart.com/api/v2/parts/search?apikey={{ENV{DDG_SPICE_OCTOPART_APIKEY}}}&limit=12&optimize.hide_offers=1&optimize.hide_specs=1&q=$1&callback={{callback}}';
19 handle remainder => sub {
GithubStatus.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 26 lines
7 description "Github status";
8 name "Github Status";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/GithubStatus.pm";
10 topics "computing", "programming";
11 category "programming";
12 attribution github => ['https://github.com/Feral2k','Logan Garcia'],
13 email => ['logangarcia@openmailbox.org','Logan Garcia'];
15 triggers startend => 'github';
17 spice to => 'https://status.github.com/api/last-message.json?callback={{callback}}';
18 spice proxy_cache_valid => "418 1d";
Twitter.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 35 lines
3 use DDG::Spice;
5 primary_example_queries '@duckduckgo';
6 secondary_example_queries "twitter yegg";
7 description "Shows a user's latest tweet.";
8 name "Twitter";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Twitter.pm";
10 topics "everyday", "social";
11 category "time_sensitive";
12 attribution github => ["https://github.com/duckduckgo/", "DuckDuckGo"],
13 twitter => ["https://twitter.com/duckduckgo", "duckduckgo"],
15 twitter => ["https://twitter.com/ecounysis", "Eric Christensen"];
17 spice to => 'https://duckduckgo.com/tw.js?user=$1&callback={{callback}}¤t=1';
18 triggers query => qr/^(?:twitter\s)?@([a-z0-9_]+)$|^twitter\s([a-z0-9_]+)$/i;
FromToPhrase.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 42 lines
6 with('DDG::SpiceRole::Translate');
8 attribution github => ['https://github.com/ghedo', 'ghedo' ],
9 web => ['http://ghedini.me', 'Alessandro Ghedini'];
11 my $langs = 'arabic|ar|chinese|zh|czech|cz|english|en|french|fr|greek|gr|italian|it|japanese|ja|korean|ko|polish|pl|portuguese|pt|romanian|ro|spanish|es|turkish|tr';
13 spice to => 'http://mymemory.translated.net/api/get?q=$3&langpair=$1|$2&de=office@duckduckgo.com';
14 spice from => '(.+)\/(.+)\/(.+)';
15 spice wrap_jsonp_callback => 1;
Subject.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 27 lines
6 name "Astrobin Subject";
7 source "http://www.astrobin.com";
8 description "Astrophotography images fetched by group search";
9 primary_example_queries "astrophoto M31", "astronomy pictures saturn";
12 icon_url "http://www.astrobin.com/favicon.ico";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Astrobin/Subject.pm";
14 attribution github => ["https://github.com/killerfish", "Usman Raza"],
15 twitter => ["https://twitter.com/f1shie", "Usman Raza"];
17 triggers start => "astrophoto", "astrophotography", "astronomy pictures", "astronomy picture", "astronomy picture of", "astronomy image of", "astronomy pictures of", "astronomy images of";
18 spice to => 'http://www.astrobin.com/api/v1/image/?title__icontains=$1&api_key={{ENV{DDG_SPICE_ASTROBIN_APIKEY}}}&api_secret={{ENV{DDG_SPICE_ASTROBIN_APISECRET}}}&format=json';
20 spice wrap_jsonp_callback => 1;
Expatistan.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 24 lines
5 primary_example_queries "cost of living in Philadelphia";
6 description "See and compare costs of living via Expatistan";
7 name "Expatisan";
8 icon_url "/i/www.expatistan.com.ico";
9 source "Expatisan";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Expatistan.pm";
11 topics "economy_and_finance";
12 category "facts";
15 triggers any => "cost of living";
17 spice to => 'http://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
19 handle query_lc => sub {
test_resultDomain.js (https://github.com/rillian/firefox.git) JavaScript · 33 lines
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5 * Tests getResultDomain API.
6 */
24 ]);
26 do_check_eq(engine1.getResultDomain(), "google.com");
27 do_check_eq(engine1.getResultDomain("text/html"), "google.com");
29 "purpose.google.com");
30 do_check_eq(engine1.getResultDomain("fake-response-type"), "");
31 do_check_eq(engine2.getResultDomain(), "duckduckgo.com");
32 do_check_eq(engine3.getResultDomain(), "bacon.moz");
33 });
Getartistid.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 37 lines
13 category "entertainment";
14 topics "entertainment", "everyday", "music";
15 # FIXME Point to the duckduckgo repository on pull.
16 code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Artists.pm";
17 attribution github => ["https://github.com/bradcater", "Brad Cater"],
18 twitter => ["https://twitter.com/bradcater", "Brad Cater"];
20 triggers start => "artists", "bands", "musicians";
22 spice to => 'http://api.songkick.com/api/3.0/search/artists.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
24 handle remainder => sub {
25 # If the query isn't blank, then use it for the API query.
26 if (length($_) > 0) {
27 if ($_ =~ /^like (.+)$/) {
GooglePlus.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 26 lines
4 use DDG::Spice;
6 primary_example_queries "google+ duckduckgo";
7 description "Find Google+ users";
8 name "GooglePlus";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/GooglePlus.pm";
10 topics "everyday", "social";
11 category "ids";
13 twitter => ['http://twitter.com/juantalon','juantalon'];
15 spice to => 'https://www.googleapis.com/plus/v1/people/?query=$1&key={{ENV{DDG_SPICE_GOOGLE_PLUS_APIKEY}}}&callback={{callback}}&maxResults=12';
16 spice proxy_ssl_session_reuse => "off";
collection_modules.md (https://github.com/shmilylty/OneForAll.git) Markdown · 114 lines
49 | commoncrawl | 否 | 否 | |
51 4. 利用DNS数据集收集子域(目前有24个模块:`cebaidu`, `binaryedge_api`, `circl_api`, `cloudflare`, `hackertarget`, `riddler`, `bufferover`, `dnsdb`, `ipv4info`, `robtex`, `chinaz`, `dnsdb_api`, `netcraft`, `securitytrails_api`, `chinaz_api`, `dnsdumpster`, `passivedns_api`, `ptrarchive`, `sitedossier`,`threatcrowd`)
53 | 模块名称 | 是否需要代理 | 是否需要API | 其他说明 |
87 | riskiq_api | 否 | 是 | API使用和申请见[api.py](../oneforall/config/api.py) |
88 | threatbook_api | 否 | 是 | API使用和申请见[api.py](../oneforall/config/api.py) |
89 | threatminer | 否 | 否 | |
90 | virustotal | 否 | 否 | |
91 | virustotal_api | 否 | 是 | API使用和申请见[api.py](../oneforall/config/api.py) |
92 7. 利用搜索引擎发现子域(目前有16个模块:`ask`, `bing_api`, `fofa_api`, `shodan_api`, `yahoo`, `baidu`, `duckduckgo`, `github`, `google`, `so`, `yandex`, `bing`, `exalead`, `google_api`, `sogou`, `zoomeye_api`)
94 除特殊搜索引擎,通用的搜索引擎都支持自动排除搜索,全量搜索,递归搜索。
112 | yahoo | 是 | 否 | |
113 | yandex | 是 | 否 | |
114 | zoomeye_api | 否 | 是 | API使用和申请见[api.py](../oneforall/config/api.py) |
duckduckgo_definitions.py (https://github.com/entropage/mijisou.git) Python · 158 lines
1 import json
2 from lxml import html
3 from re import compile
4 from searx.engines.xpath import extract_text
5 from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url, language_aliases
7 from searx.utils import html_to_text, match_language
9 url = 'https://api.duckduckgo.com/'\
10 + '?{query}&format=json&pretty=0&no_redirect=1&d=1'
12 http_regex = compile(r'^http:')
navigation.html (https://gitlab.com/janninematt/janninematt) HTML · 55 lines
2 <ul class="subscription" data-subscription="rss">
3 {% if FEED_FEEDBURNER %}
4 <li><a href="http://feeds.feedburner.com/{{ FEED_FEEDBURNER }}" rel="subscribe-rss">RSS</a></li>
5 {% else %}
6 {% if FEED_ATOM %}
17 <form action="{{ SITESEARCH|default('https://www.google.com/search') }}" method="get">
18 <fieldset role="search">
19 {% if 'duckduckgo.com' in SITESEARCH|lower %}
20 <input type="hidden" name="sites" value="{{ SITEURL|replace('https://','')|replace('http://','') }}" />
21 {% else %}
44 {% for cat, null in categories %}
45 <li {% if cat == category %}class="active"{% endif %}>
46 <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | capitalize }}</a>
47 </li>
48 {% endfor %}
Specials.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
6 name "steam";
7 source "http://store.steampowered.com";
8 description "Get featured games on sale at Steam store";
9 primary_example_queries "steam specials";
12 icon_url "/i/store.steampowered.com.ico";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Steam/Specials.pm";
14 attribution github => ["https://github.com/killerfish", "Usman Raza"],
15 twitter => ["https://twitter.com/f1shie", "Usman Raza"];
17 triggers startend => "steam special", "steam specials", "steam store", "steam offers", "steam offer";
18 spice to => 'http://store.steampowered.com/api/featuredcategories';
19 spice proxy_cache_valid => "200 60m";
20 spice wrap_jsonp_callback => 1;
HackerNews.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 25 lines
6 description "Search the Hacker News database for related stories/comments";
7 name "HackerNews";
8 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/HackerNews.pm";
9 icon_url "/i/www.hnsearch.com.ico";
10 topics "programming", "social";
11 category "forums";
12 attribution github => ['https://github.com/adman','Adman'],
13 twitter => ['http://twitter.com/adman_X','adman_X'];
15 triggers startend => "hn", "hackernews", "hacker news", "news.yc", "news.ycombinator.com", "hn search", "hnsearch", "hacker news search", "hackernews search";
17 spice to => 'https://hn.algolia.com/api/v1/search?query=$1&tags=story';
ChuckNorris.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 23 lines
8 name "ChuckNorris";
9 source "Chuck Norris Database";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/ChuckNorris.pm";
11 topics "special_interest";
12 category "random";
13 attribution github => ['https://github.com/mr-mayank-gupta','Mayank Gupta'],
14 twitter => ['http://twitter.com/iammayankg','iammayankg'];
17 spice is_unsafe => 1;
18 triggers start => 'chuck norris fact','chuck norris facts','chuck norris joke','chuck norris jokes';
19 spice to => 'http://api.icndb.com/jokes/random?escape=javascript&callback={{callback}}';
20 handle remainder => sub {
21 return @_ ;
index.html (https://github.com/startpages/startpages.github.io.git) HTML · 104 lines
9 <!-- Latest compiled and minified CSS -->
10 <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
12 <!-- jQuery library -->
13 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
15 <!-- Latest compiled JavaScript -->
35 <div class="col-sm-3 col-md-offset-9">
36 <div class="form-group">
37 <form method="get" action="https://duckduckgo.com/?q=search">
38 <input type="text" class="form-control" id="search" name="q" size="50" value="">
39 </form>
63 <a class="list-group-item" href="http://www.gearbest.com">Gearbest</a>
64 <a class="list-group-item" href="http://www.duckduckgo.com">DuckDuckGo</a>
65 <a class="list-group-item" href="http://www.github.com">Github</a>
test_duckduckgo.py (https://github.com/keiffster/program-y.git) Python · 112 lines
50 def test_init_with_requestapi(self):
51 api = DuckDuckGoAPI(MockRequestsAPI())
52 self.assertIsNotNone(api)
56 request_api = MockRequestsAPI()
57 api = DuckDuckGoAPI(request_api)
58 self.assertIsNotNone(api)
95 config._url = "http://test.pandora.url"
97 service = DuckDuckGoService(config=config, api=MockDuckDuckGoAPI(response="Test DuckDuckGo response"))
98 self.assertIsNotNone(service)
105 config._url = "http://test.pandora.url"
107 service = DuckDuckGoService(config=config, api=MockDuckDuckGoAPI(response=None, throw_exception=True))
108 self.assertIsNotNone(service)
language-location-apis.md (https://github.com/duckduckgo/duckduckhack-docs.git) Markdown · 76 lines
3 Some Instant Answers employ contextual data about the user's search to provide the most relevant results. For example, since sunrise and sunset times vary widely around the world, the [sunrise/sunset Instant Answer](https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/SunInfo.pm#L41) requires the user's approximate location.
5 The [core DDG library](https://github.com/duckduckgo/duckduckgo) provides Goodie and Spice Instant Answers with location and language APIs to provide simple, helpful and delightful results.
7 ## Location API
9 The [core DDG library](https://github.com/duckduckgo/duckduckgo) provides a Location API. Since Goodie and Spice Instant Answers inherit from this package, their `handle` functions have access to a `$loc` variable which refers to a [Location object](https://github.com/duckduckgo/duckduckgo/blob/master/lib/DDG/Location.pm).
11 This Location object has a number of [useful attributes](https://github.com/duckduckgo/duckduckgo/blob/master/lib/DDG/Location.pm#L6) to help you provide relevant answers:
48 ## Language API
50 The [core DDG library](https://github.com/duckduckgo/duckduckgo) exposes a Language API which Goodie and Spice Instant Answers can access in their `handle` functions. The language data is contained in the `$lang` variable.
52 <!-- /summary -->
upgrade41.php (https://github.com/w3develops/w3develops.git) PHP · 111 lines
4 * Copyright 2014 MyBB Group, All Rights Reserved
5 *
6 * Website: http://www.mybb.com
7 * License: http://www.mybb.com/about/license
27 // Remove Blekko Spider, Insert Modern Spiders
28 $db->delete_query('spiders', "name IN('Blekko', 'Discord', 'Applebot', 'CheckHost', 'Pingdom', 'DuckDuckGo', 'UptimeRobot')");
30 $db->insert_query_multiple('spiders', array(
32 array("name" => "Applebot", "useragent" => "Applebot"),
33 array("name" => "CheckHost", "useragent" => "CheckHost"),
34 array("name" => "Pingdom", "useragent" => "Pingdom.com_bot"),
35 array("name" => "DuckDuckGo", "useragent" => "DuckDuckBot"),
content.html (https://gitlab.com/codingrights/radarlegislativo) HTML · 51 lines
34 </div>
35 <div class="after-projetos text-center">
36 <p>Feeds RSS das tramitações: <em><a href="https://duckduckgo.com/?q=o+que+são+feeds">(o que são feeds?)</a></em><br />
37 <a href="feed/todos.xml">
38 Todos os projetos
47 </p>
48 <hr />
49 <p>Dados extraídos do <a href="http://www2.camara.leg.br/transparencia/dados-abertos/dados-abertos-legislativo">WebServices da Câmara</a>, do serviço de <a href="http://dadosabertos.senado.gov.br/">Dados Abertos</a> do Senado<br /> e através de raspagem / <em>scraping</em> de alguns dados indisponíveis nos serviços.</p>
50 </div>
51 </div>
casperjs.rb (https://gitlab.com/0072016/homebrew-core) Ruby · 36 lines
2 desc "Navigation scripting and testing tool for PhantomJS"
3 homepage "http://www.casperjs.org/"
4 url "https://github.com/casperjs/casperjs/archive/1.1.3.tar.gz"
5 sha256 "3e9c385a2e3124a44728b24d3b4cad05a48e2b3827e9350bdfe11c9a6d4a4298"
6 head "https://github.com/casperjs/casperjs.git"
8 bottle do
9 cellar :any_skip_relocation
10 sha256 "b71c26fc5d2d6da94cc95554defbe5db1c6e0213d64ec09fea99755ffd529df4" => :el_capitan
11 sha256 "3ca3351236ac827a5cd745087e7763dbd7445e05e4ce05aa11c5bbc7d62d75a6" => :yosemite
12 sha256 "082b442968052c819463dacd01b99954f9e2e9e0a5d318c9b7a69e9f31e660f2" => :mavericks
25 (testpath/"fetch.js").write <<-EOS.undent
26 var casper = require("casper").create();
27 casper.start("https://duckduckgo.com/about", function() {
28 this.download("https://duckduckgo.com/assets/dax-alt.svg", "dax-alt.svg");
surfraw.rb (https://github.com/norbusan/linuxbrew-core.git) Ruby · 29 lines
10 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :high_sierra
11 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :sierra
12 sha256 "69920395cbde5fdc2492aa27fc765d4dafe910e26d9d3a05777888425310a0a9" => :el_capitan
13 sha256 "48b20736aae201046c9fdd3f0952ee5776be80c7eb0a7b68b3c75b837eca9285" => :x86_64_linux
14 end
26 output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
27 assert_equal "https://duckduckgo.com/lite/?q=homebrew", output.chomp
28 end
29 end
README.md (https://github.com/duckduckgo/php5-duckduckgo.git) Markdown · 32 lines
1 The DuckDuckGo PHP5 API
2 =======================
4 Notes
5 -----
6 - This API requires PHP *v5.3* or higher, due to the use of namespaces.
7 A namespaceless version will be available later.
8 - This API is still *experimental* - please report any and all bugs using the ticket system.
10 Usage
11 -----
12 To use the DuckDuckGo PHP5 API in your application, include DuckDuckGo/API.php where you want
13 to use the API, create a new instance of the DuckDuckGo\API class, and use it to improve the world!
18 require_once('DuckDuckGo/API.php');
19 $api = new DuckDuckGo\API();
20 $api->secure = TRUE;
CONTRIBUTING.md (git://github.com/ajanicij/goduckgo.git) Markdown · 82 lines
17 - Firstly, please make sure the bug is related to the **GoDuckGo** package. If this bug
18 is about the DuckDuckGo API, or the relevancy of the search results, please visit DuckDuckGo's
19 feedback page at <https://duckduckgo.com/feedback>.
52 ------------------
54 1. Commit your changes.
56 ```shell
57 git commit -am "My first commit!"
58 ```
60 2. Get your commit history [how you like it](http://book.git-scm.com/4_interactive_rebasing.html).
62 ```shell
inc-form_duckduckgo.html (https://bitbucket.org/pombredanne/spip-zone-treemap.git) HTML · 14 lines
1 <div class="recherche duckduckgo muted">
2 <strong class="h3-like"><:sarkaspip:sstitre_recherche_web:> <small><a href="http://www.duckduckgo.fr"><img class="moteur" src="#CHEMIN{images/logo-duckduckgo.png}" alt="duckduckgo" /></a></small></strong>
3 <div class="formulaire_spip formulaire_recherche form-search duckduckgo">
4 [(#REM) <!-- duckduckgo Search --> ]
5 <form method="get" action="https://duckduckgo.com/"><div>
6 <input type="hidden" name="kl" value="fr-fr" />
7 <label class="muted" for="q"><:info_rechercher_02:></label>
8 <div class="input-append">
9 <input type="search" class="search text search-query" placeholder="<:sarkaspip:requete:>" maxlength="255" name="q" id="q"[ value="(#ENV{recherche})"] autocapitalize="off" autocorrect="off" />
10 <button type="submit" class="btn" title="<:info_rechercher|attribut_html:>" >>></button>
11 </div>
YogaAsanas.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 33 lines
README.md (https://github.com/balsoft/lambda-launcher.git) Markdown · 83 lines
1 # λauncher [](https://travis-ci.com/balsoft/lambda-launcher)
3 λauncher is a GTK launcher application built with Haskell and
6 ## Screenshots
8 
10 
15 - No runtime settings (not a bug, but a feature)
16 - 5M memory on coldstart, 20M memory when all plugins are loaded
17 - Very quick startup (compared to some other graphical launchers
19 ## Configuration
37 | Name | Trigger | Description | Required dependencies | Optional dependencies |
38 |-----------------|---------|-----------------------------------------------------|-----------------------|-----------------------|
39 | Command | $ | run shell commands, with suggestions | | |
40 | Duckduckgo | ddg | search the web with DDG instant answers | | |
Snow.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 76 lines
9 icon_url "/icon16.png";
10 source "Is it snowing yet?";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Snow.pm";
12 topics "everyday";
13 category "facts";
14 attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
15 github => [ 'https://github.com/duckduckgo', 'duckduckgo'],
16 twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
18 spice to => 'http://isitsnowingyet.org/api/check/$1/key/{{ENV{DDG_SPICE_SNOW_APIKEY}}}';
MetaCPAN.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 28 lines
4 use DDG::Spice;
6 primary_example_queries "metacpan WWW::DuckDuckGo";
7 description "Searches CPAN modules";
8 name "MetaCPAN";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/MetaCPAN.pm";
10 icon_url "/i/metacpan.org.ico";
11 topics "programming", "sysadmin";
12 category "programming";
13 attribution github => ['https://github.com/ghedo', 'ghedo'],
14 web => ['http://ghedini.me', 'Alessandro Ghedini'],
15 github => ['https://github.com/dsteinbrunner', 'David Steinbrunner'];
Bible.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 29 lines
9 icon_url "/i/blueletterbible.org.ico";
10 source "Blue Letter Bible";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Bible.pm";
12 topics "special_interest", "everyday";
13 category "random";
14 attribution github => ['https://github.com/hunterlang','Hunter Lang'],
15 web => 'http://hunterlang.com/';
18 triggers any => @triggers;
20 spice to => 'http://labs.bible.org/api/?type=json&callback={{callback}}&formatting=plain&passage=$1';
22 handle query_lc => sub {
WGHA.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 34 lines
10 description "Events in Germany";
11 name "WGHA Events";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/WGHA.pm";
13 topics "entertainment", "special_interest";
14 category "entertainment";
20 triggers any => @triggers;
22 spice to => 'http://ddg.wasgehtheuteab.de/duckduckgo/events.json?q=$1&callback={{callback}}&api_key={{ENV{DDG_SPICE_WGHA_APIKEY}}}';
23 spice proxy_cache_valid => "200 60m";
SeatGeek.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 32 lines
1 package DDG::Spice::SeatGeek;
2 # ABSTRACT: Returns upcoming concerts for a band/artist.
4 use DDG::Spice;
6 primary_example_queries "live show weezer", "upcoming concerts in flames";
7 description "Upcoming concerts from SeatGeek";
8 name "SeatGeek";
9 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SeatGeek.pm";
10 category "entertainment";
11 topics "entertainment", "music";
12 attribution github => ['https://github.com/MariagraziaAlastra','MariagraziaAlastra'];
14 triggers startend => 'upcoming concert', 'upcoming concerts', 'concert', 'concerts', 'live', 'live show', 'live shows';
16 spice to => 'http://api.seatgeek.com/2/events?performers.slug=$1';
BitcoinAddress.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 37 lines
1 package DDG::Spice::BitcoinAddress;
2 # ABSTRACT: Displays information about a bitcoin block using the biteasy.com API.
4 use DDG::Spice;
10 description "Display information about a Bitcoin Address";
11 name "Bitcoin Address Info";
12 source "https://api.biteasy.com";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinAddress.pm";
16 icon_url "https://www.biteasy.com/favicon.ico";
18 attribution github => ['https://github.com/biteasy','biteasy.com'],
19 email => ['support@biteasy.com','info@biteasy.com'],
24 # This regular expression parses a valid Bitcoin Address
26 spice to => 'https://api.biteasy.com/blockchain/v1/addresses/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
28 spice wrap_jsonp_callback => 1;
default.html (https://github.com/To1ne/writepermission.git) HTML · 96 lines
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>{% assign maintitle = 'rw-r--r-- | writepermission.com' %}
5 {% if page.title %}<title>{{ page.title }} ~ {{ maintitle }}</title>
6 {% else %}<title>{{ maintitle }}</title>{% endif %}
7 <link rel="stylesheet" href="/css/style.css" type="text/css" />
8 <link href="http://feeds.feedburner.com/writepermission" rel="alternate" title="rw-r--r-- | writepermission.com" type="application/atom+xml" />
9 <meta name="robots" content="index,follow" />
10 <meta name="author" content="Toon Claes" />
60 <h1>Search</h1>
61 <div class="search-wrapper">
62 <iframe class="search-box" src="https://duckduckgo.com/search.html?site=writepermission.com&prefill=search"></iframe>
63 </div>
64 </div><!-- #box -->
developing-reference-fatheads.md (https://github.com/duckduckgo/duckduckhack-docs.git) Markdown · 51 lines
7 3. Addressing unanswered queries
9 For each of these phases there will be a pull request, which will be merged and deployed upon phase completion; we will then be able to observe the changes to the Instant Answer's coverage and engagement data. The data is available within the Search Overview topic for the specific language.
11 See the [Fathead Overview](https://docs.duckduckhack.com/fathead-reference/section.html) article to learn more about Fatheads.
45 ### Examples
46 The [JQuery Fathead](https://github.com/duckduckgo/zeroclickinfo-fathead/tree/master/lib/fathead/jquery), written in Python, is a great example of what a reference Fathead should look like.
48 Here are other great Fatheads implemented in different languages:
49 - [MDN CSS](https://github.com/duckduckgo/zeroclickinfo-fathead/tree/master/lib/fathead/mdn_css) (Perl)
50 - [Ruby Language](https://github.com/duckduckgo/zeroclickinfo-fathead/tree/master/lib/fathead/ruby) (Ruby)
51 - [PHP Language](https://github.com/duckduckgo/zeroclickinfo-fathead/blob/master/lib/fathead/php/parse.js) (Javascript - Node.js)
browser_searchRestoreDefaults.js (https://github.com/dot-browser/desktop.git) JavaScript · 107 lines
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 const { SearchTestUtils } = ChromeUtils.import(
5 "resource://testing-common/SearchTestUtils.jsm"
6 );
7 const { SearchUtils } = ChromeUtils.import(
16 }
18 await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true });
20 let doc = gBrowser.selectedBrowser.contentDocument;
39 tree.columns.getNamedColumn("engineName")
40 );
41 if (cellName == "DuckDuckGo") {
42 tree.view.selection.select(i);
43 break;
app.php (https://github.com/linuxserver/Heimdall.git) PHP · 116 lines
69 'apps.password' => 'Palavra-passe',
70 'apps.config' => 'Configuração',
71 'apps.apikey' => 'API Key',
72 'apps.enable' => 'Ativar',
73 'apps.tag_list' => 'Lista de tags',
94 'restore' => 'Restaurar',
96 'alert.success.item_created' => 'Item criado com sucesso',
97 'alert.success.item_updated' => 'Item atualizado com sucesso',
102 'alert.success.tag_created' => 'Tag criada com sucesso',
103 'alert.success.tag_updated' => 'Tag atualizada com sucesso',
104 'alert.success.tag_deleted' => 'Tag apagada com sucesso',
105 'alert.success.tag_restored' => 'Tag restaurada com sucesso',
107 'alert.success.setting_updated' => 'Definição editada com sucesso',
108 'alert.error.not_exist' => 'Esta definição não existe.',
region.properties (https://gitlab.com/parabola/abslibre_abslibre) Properties File · 27 lines
8 # Search engine order (order displayed in the search bar dropdown)s
9 browser.search.order.1=searx
10 browser.search.order.2=DuckDuckGo HTML
11 browser.search.order.3=DuckDuckGo Lite
13 # To make mapit buttons to disappear in the addressbook, specify empty string. For example:
14 # mail.addr_book.mapit_url.format=
15 # The format for "mail.addr_book.mapit_url.format" is:
16 # @A1 == address, part 1
17 # @A2 == address, part 2
20 # @ZI == zip code
21 # @CO == country
22 mail.addr_book.mapit_url.format=
23 mailnews.messageid_browser.url=
Definition.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 36 lines
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Dictionary/Definition.pm";
12 attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
13 twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
15 spice to => 'http://api.wordnik.com/v4/word.json/$1/definitions?includeRelated=true&includeTags=true&limit=3&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
16 spice proxy_cache_valid => '200 30d';
Kwixer.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 31 lines
8 description "Advanced movie queries with Kwixer";
9 name "Kwixer";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Kwixer.pm";
11 icon_url "https://kwixer.com/favicon.ico";
13 category "entertainment";
14 attribution twitter => ['kwixerapp','Kwixer'],
15 web => ['https://www.kwixer.com','Kwixer'];
18 spice to => 'https://www.kwixer.com/api/search?filter=movie&take=40&source=ddg&lang=en&query=$1';
19 spice wrap_jsonp_callback => 1;
Album.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 30 lines
9 icon_url "/i/www.last.fm.ico";
10 source "Last.fm";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Lastfm/Album.pm";
12 topics "entertainment", "music";
13 category "entertainment";
14 attribution github => ['https://github.com/jagtalon','Jag Talon'],
15 twitter => ['http://twitter.com/juantalon','Jag Talon'];
17 spice to => 'http://ws.audioscrobbler.com/2.0/?format=json&method=album.getinfo&album=$1&autocorrect=1&artist=$2&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}';
18 spice from => '(?:([^/]*)/([^/]*)|)';
UrbanDictionary.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 31 lines
10 icon_url "/i/urbandictionary.com.ico";
11 source "UrbanDictionary";
12 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/UrbanDictionary.pm";
13 topics "geek";
14 category "language";
15 attribution github => ['https://github.com/FiloSottile','FiloSottile'],
16 web => ['http://pytux.it','Filippo Valsorda'],
17 email => ['filippo.valsorda@gmail.com','Filippo Valsorda'];
21 triggers startend => "ud", "urban", "urbandictionary", "urban dictionary";
23 spice to => 'http://api.urbandictionary.com/v0/define?term=$1&callback={{callback}}';
25 handle remainder => sub {
BrainyQuote.pm (https://github.com/pardocz/zeroclickinfo-spice.git) Perl · 33 lines
8 description "Provides quotations on and about given topics";
9 name "Quotations";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BrainyQuote.pm";
11 icon_url "http://brainyquote.com/favicon.ico";
14 source "BrainyQuote.com";
15 attribution web => ['http://www.brainyquote.com','BrainyQuote.com'];
17 triggers startend => 'quote', 'quotes', 'quotation', 'quotations';
19 spice to => 'http://www.brainyquote.com/api/ddg?q=$1';
20 spice wrap_jsonp_callback => 1;
Tumblr.pm (https://github.com/pombredanne/zeroclickinfo-spice.git) Perl · 23 lines
3 use DDG::Spice;
5 spice to => 'http://api.tumblr.com/v2/tagged?tag=$1&feature_type=popular&api_key={{ENV{DDG_SPICE_TUMBLR_APIKEY}}}&callback={{callback}}';
7 primary_example_queries "tumblr flowers";
8 description "Tumblr pictures";
9 name "Tumblr";
10 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Tumblr.pm";
11 topics "everyday", "social";
12 category "entertainment";
13 attribution github => ['https://github.com/nilnilnil','Caine Tighe'],
14 twitter => ['http://twitter.com/__nil','__nil'];
test_parseSubmissionURL.js (https://github.com/dot-browser/desktop.git) JavaScript · 173 lines
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5 * Tests getAlternateDomains API.
6 */
121 );
122 Assert.equal(
123 Services.search.parseSubmissionURL("https://duckduckgo.com?q=test").engine,
124 null
125 );
126 Assert.equal(
127 Services.search.parseSubmissionURL("https://duckduckgo.com/?q=test").engine,
128 null
129 );
README.md (https://github.com/aszone/avenger-sh.git) Markdown · 135 lines
24 The recommended way to install PHP Avenger is through
25 [Composer](http://getcomposer.org).
27 ```bash
30 ```
32 Next, run the Composer command to install the latest beta version of Php Avenger SH:
34 ```bash
63 ```
64 #### Result of Local File Download
65 
67 ### Check and Exploited Local File Download
75 
76 #### Video of Extract Files
77 [](https://www.youtube.com/watch?v=IdrpQ7KQlmU)
79 ### Check is Admin Page
duckduckgo.js (https://github.com/Gravebot/Gravebot.git) JavaScript · 92 lines
isync.rb (https://gitlab.com/0072016/homebrew-core) Ruby · 34 lines
7 bottle do
8 cellar :any
9 sha256 "b236f25f8fb6f2285fb6775deba1e61b89df904fc2fc933f2546bb69d0bb9ec6" => :el_capitan
10 sha256 "a4406974110a2f4ea3aaa81f0232c00f8aa9b572fab8709f1e16c7dc2d6ab6f6" => :yosemite
11 sha256 "3be99741095c146ef4bf44732cf3850aa62bf23a8676d6289bb11b988ac328fd" => :mavericks
31 test do
32 system bin/"get-cert", "duckduckgo.com:443"
33 end
34 end
Snow.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 79 lines
11 icon_url "/icon16.png";
12 source "Is it snowing yet?";
13 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Snow.pm";
14 topics "everyday";
15 category "facts";
16 attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
17 github => [ 'https://github.com/duckduckgo', 'DuckDuckGo'],
18 twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
20 spice to => 'http://isitsnowingyet.org/api/check/$1/key/{{ENV{DDG_SPICE_SNOW_APIKEY}}}';
03-processing.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 91 lines
34 val http = Gigahorse.http(Gigahorse.config)
36 val r = Gigahorse.url("https://api.duckduckgo.com").get.
37 addQueryString(
38 "q" -> "1 + 1"
50 ### Lifting the FullResponse to Either
52 One of the common processing when dealing with a Future that can fail is to
53 lift the inner `A` value to `Either[Throwable, A]`.
55 There's a convenient website called <http://getstatuscode.com/>
56 that can emulate HTTP statuses. Here's what happens when we await on a failed Future.
Geteventid.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 42 lines
8 name "Songkick Events";
9 description "See upcoming concerts.";
10 source "Songkick";
11 primary_example_queries "concerts in Boston";
13 category "entertainment";
14 topics "entertainment", "everyday", "music";
15 # FIXME Point to the duckduckgo repository on pull.
16 code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Events.pm";
17 attribution github => ["https://github.com/bradcater", "Brad Cater"],
18 twitter => ["https://twitter.com/bradcater", "Brad Cater"];
20 triggers startend => "concert", "concerts";
22 spice to => 'http://api.songkick.com/api/3.0/search/locations.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
24 handle remainder => sub {
InTheaters.pm (git://github.com/duckduckgo/zeroclickinfo-spice.git) Perl · 109 lines
9 description "Current movies from Rotten Tomatoes";
10 name "InTheaters";
11 code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/InTheaters.pm";
12 icon_url "/i/www.rottentomatoes.com.ico";
13 topics "entertainment";
14 category "entertainment";
15 attribution github => ['https://github.com/jagtalon','jagtalon'],
16 twitter => ['http://twitter.com/juantalon','jagtalon'];
19 triggers any => 'movie', 'movies', 'theaters', 'theatres', 'showing', 'something', 'watch', 'opening', 'see';
20 spice from => '(.*?)/(.*)';
21 spice to => 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/$1.json?country=$2&apikey={{ENV{DDG_SPICE_ROTTEN_APIKEY}}}&callback={{callback}}&page_limit=30&limit=30';
23 # Uses $loc so needs to not cache back end.
ServiceSettingsHelper.php (https://github.com/marius-wieschollek/passwords.git) PHP · 385 lines
8 namespace OCA\Passwords\Helper\AppSettings;
10 use OCA\Passwords\Exception\ApiException;
11 use OCA\Passwords\Helper\Favicon\BestIconHelper;
12 use OCA\Passwords\Helper\Image\ImagickHelper;
61 'preview' => HelperService::PREVIEW_DEFAULT,
62 'favicon' => HelperService::FAVICON_DEFAULT,
63 'preview.api' => '',
64 'favicon.api' => ''
89 $this->get('preview'),
90 $this->get('security'),
91 $this->get('favicon.api'),
92 $this->get('preview.api')
93 ];
94 } catch(ApiException $e) {
95 return [];
96 }
duckduck_test.go (git://github.com/ajanicij/goduckgo.git) Go · 66 lines
12 func TestQuery(t *testing.T) {
13 query := "New York City"
14 expectedUrl := "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
15 expectedBody := `{
16 "Heading" : "New York City"
50 func TestEncodeUrl(t *testing.T) {
51 query := "!gi New York City"
52 expectedUrl := "https://api.duckduckgo.com/?q=%21gi+New+York+City&format=json&pretty=1&no_redirect=1"
54 url := EncodeUrl(query)
59 query = "New York City"
60 expectedUrl = "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
61 url = EncodeUrl(query)
62 if url != expectedUrl {
duckduckgosearch.py (https://github.com/jeffzh3ng/Fuxi-Scanner.git) Python · 85 lines
1 from fuxi.common.thirdparty.theHarvester.discovery.constants import *
2 from fuxi.common.thirdparty.theHarvester.lib.core import *
3 from fuxi.common.thirdparty.theHarvester.parsers import myparser
4 import json
7 class SearchDuckDuckGo:
9 def __init__(self, word, limit):
15 self.database = 'https://duckduckgo.com/?q='
16 self.api = 'https://api.duckduckgo.com/?q=x&format=json&pretty=1' # Currently using API.
17 self.quantity = '100'
18 self.limit = limit