PageRenderTime 34ms queryFilters 0ms Sphinxql 140ms GetByIds 193ms meta 0ms repositoryFilters 154ms languageFilters 0ms sourceFilters 0ms

394 results for 'api.duckduckgo.com' (34 ms)

Source

Language

Repository

search.py https://gitlab.com/garheade/garbot.git | Python | 223 lines
149    uri = web.quote(query)
150    uri = 'http://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1'%query
151    results = json.loads(web.get(uri))
UI.pm https://github.com/nospampleasemam/p5-app-duckduckgo-ui.git | Perl | 450 lines
201    my ($self, $call) = @_;
202    my $request = HTTP::Request->new(GET => "https://api.duckduckgo.com/$call");
203    POE::Kernel->post('ua', 'request', 'http_response', $request, 'fill_deep');
abstract.coffee git://github.com/github/hubot-scripts.git | CoffeeScript | 45 lines
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)
abstract.coffee https://github.com/kevinsawicki/hubot-scripts.git | CoffeeScript | 56 lines
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)
search.py https://github.com/stsquad/willie.git | Python | 214 lines
138
139    uri = 'http://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1' % query
140    results = json.loads(web.get(uri))
define.py https://github.com/xray7224/MegBot.git | Python | 45 lines
30
31    url = "http://api.duckduckgo.com/?q=%s&format=json" % query_string
32    request = urlopen(url)
extensions-api-tab-title.html https://github.com/richtr/operaextensions.js.git | HTML | 59 lines
1<!DOCTYPE html>
2<html>
3<head>
4  <title>Opera Extensions API Documentation</title>
5  <link rel='stylesheet' href='../resources/markdown8.css'/>
6  <meta charset='utf-8'>
7  <meta charset='utf-8'>
8</head>
9<body>
10
11<p><a href="../index.html">&laquo; Documentation Home</a></p>
12
13<h1>BrowserTab.title</h1>
14
15<p class="note">This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions &lt;= 12.15 and also provided by our <a href="http://github.com/operasoftware/oex2nex">OEX2NEX shim library</a>.<br/><br/>For the latest Opera Extensions API documentation for Opera versions &gt; 12.15 please consult <a href="http://dev.opera.com/addons/extensions/">the latest Opera Extensions API documentation online</a>.</p>
ducky_search.rb https://github.com/alexshook/ducky_search.git | Ruby | 40 lines
32    def get_topic_summary(query_string)
33      results = HTTParty.get("http://api.duckduckgo.com/?q=#{query_string}&format=json")
34      abstract = JSON.parse(results)['AbstractText']
master.js https://github.com/licson0729/SO-ChatBot.git | JavaScript | 6,584 lines
278	IO.jsonp({
279		url : 'http://api.duckduckgo.com/',
280		jsonpName : 'callback',
ApiConstants.java https://gitlab.com/intruxxer/android-best-practices.git | Java | 12 lines
5    // Just examples. Replace however you need!
6    public static final String BASE_URL = "http://api.duckduckgo.com";
7    public static final int HTTP_CONNECT_TIMEOUT =  6000; // milliseconds
duckduckgo-ui.yml https://github.com/nospampleasemam/p5-app-duckduckgo-ui.git | YAML | 27 lines
1# Command to execute for the web browser -- %s is replaced with the URL.
2browser: w3m %s
3
4# Extra URL params to pass to the API (see: https://duckduckgo.com/params)
5params:
6    # SafeSearch
7    kp: -1
8    # Region (wt-wt is None)
9    kl: wt-wt
10
11# UI configuration
12interface:
13    searchbox:
14        # These are the builtin defaults, for examples.
15        -border: true
index.html https://github.com/victusfate/Image-Matrix.git | HTML | 247 lines
177                        + "&callback=?";
178                // var apiurl = "http://api.duckduckgo.com/?q=" + encodeURIComponent(key) + "&format=json&callback=?";
179                CreateImagesWithUrl(apiurl, bindex, key);
helper.js https://gitlab.com/jhta/.myconfig.git | JavaScript | 251 lines
14const DUCKDUCKGO_API_URL = 
15    "https://api.duckduckgo.com/?format=json&no_redirect=1"+
16    "&skip_disambig=1&q=";
duck.rb https://github.com/Ronovan/ruby-rails-jumpstart.git | Ruby | 33 lines
4
5BASE_URL = "http://api.duckduckgo.com/?format=json&pretty=1&q="     # remote API url
6query     = "web services"                                          # query string
spice.js https://github.com/aembleton/zeroclickinfo-spice.git | JavaScript | 124 lines
86    	
87    	nrj("http://api.duckduckgo.com/?q=spell%20" + encodeURIComponent(query) + "&format=json&pretty=1&callback=handle_ddg_api");
88    }
IO.js https://github.com/licson0729/SO-ChatBot.git | JavaScript | 299 lines
277	IO.jsonp({
278		url : 'http://api.duckduckgo.com/',
279		jsonpName : 'callback',
spice.js https://github.com/tarnfeld/zeroclickinfo-spice.git | JavaScript | 125 lines
87    	
88    	nrj("http://api.duckduckgo.com/?q=spell%20" + encodeURIComponent(query) + "&format=json&pretty=1&callback=handle_ddg_api");
89    }
libre.patch https://bitbucket.org/axil42/aur-mirror.git | Patch | 456 lines
1diff -urN iceweasel-13.0.orig/browser/app/profile/firefox.js iceweasel-13.0/browser/app/profile/firefox.js
2--- mozilla-build.orig/browser/app/profile/firefox.js	2012-06-01 09:03:47.000000000 -0300
3+++ mozilla-build/browser/app/profile/firefox.js	2012-06-05 19:53:08.847012282 -0300
4@@ -64,11 +64,11 @@
5 // Preferences for AMO integration
6 pref("extensions.getAddons.cache.enabled", true);
7 pref("extensions.getAddons.maxResults", 15);
8-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%");
9-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
10-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
11-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox");
12-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%/%COMPATIBILITY_MODE%");
13+pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html");
14+pref("extensions.getAddons.getWithPerformance.url", "http://www.gnu.org/s/gnuzilla/addons.html");
15+pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html");
libre.patch https://bitbucket.org/axil42/aur-mirror.git | Patch | 456 lines
1diff -urN iceweasel-13.0.orig/browser/app/profile/firefox.js iceweasel-13.0/browser/app/profile/firefox.js
2--- mozilla-build.orig/browser/app/profile/firefox.js	2012-06-01 09:03:47.000000000 -0300
3+++ mozilla-build/browser/app/profile/firefox.js	2012-06-05 19:53:08.847012282 -0300
4@@ -64,11 +64,11 @@
5 // Preferences for AMO integration
6 pref("extensions.getAddons.cache.enabled", true);
7 pref("extensions.getAddons.maxResults", 15);
8-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%");
9-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
10-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
11-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox");
12-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%/%COMPATIBILITY_MODE%");
13+pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html");
14+pref("extensions.getAddons.getWithPerformance.url", "http://www.gnu.org/s/gnuzilla/addons.html");
15+pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html");
libre.patch https://bitbucket.org/kaendfinger/aur-mirror.git | Patch | 456 lines
1diff -urN iceweasel-13.0.orig/browser/app/profile/firefox.js iceweasel-13.0/browser/app/profile/firefox.js
2--- mozilla-build.orig/browser/app/profile/firefox.js	2012-06-01 09:03:47.000000000 -0300
3+++ mozilla-build/browser/app/profile/firefox.js	2012-06-05 19:53:08.847012282 -0300
4@@ -64,11 +64,11 @@
5 // Preferences for AMO integration
6 pref("extensions.getAddons.cache.enabled", true);
7 pref("extensions.getAddons.maxResults", 15);
8-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%");
9-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
10-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
11-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox");
12-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%/%COMPATIBILITY_MODE%");
13+pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html");
14+pref("extensions.getAddons.getWithPerformance.url", "http://www.gnu.org/s/gnuzilla/addons.html");
15+pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html");
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20