PageRenderTime 1078ms queryFilters 0ms Sphinxql 485ms GetByIds 395ms meta 0ms repositoryFilters 177ms languageFilters 0ms sourceFilters 0ms

885 results for 'api.duckduckgo.com' (1078 ms)

Source

Language

Repository

abrasion.py https://github.com/michaelgrosner/Abrasion.git | Python | 235 lines
1#!/usr/bin/env python
2
3from BeautifulSoup import *
4import urllib2, datetime, re, json, sys, getopt
5
6def socialSearch(search_term, extra_params=False, api='facebook', nresults=10, followLinks=True, output='p'):
7	if nresults > 100 and api == 'twitter':
8		raise Exception('Please specify less than 100 results')
9		
10	urlregex = r"https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?"
11	social_rules = {'twitter':  ['http://search.twitter.com/search.json?q=',      # Base link to api
12															 'results', 'text',                               # json dict handlers
13															 'rpp',                                           # key for nresults
14															 lambda url: re.compile(urlregex).findall(url)],  # URL extractor
15									'facebook': ['https://graph.facebook.com/search?q=',
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 112 lines
94	query_enc := url.QueryEscape(query)
95	ddgurl := fmt.Sprintf("http://api.duckduckgo.com?q=%s&format=json&pretty=1", query_enc)
96	resp, err := http.Get(ddgurl)
README.md https://github.com/andrearonsen/zeroclickinfo-goodies.git | Unknown | 205 lines
1DuckDuckGo ZeroClickInfo Goodies
2=================================
3
4About
5-----
6
7See [the contribution page](https://github.com/duckduckgo/duckduckgo/wiki) for a general overview on contributing to DuckDuckGo.
8
9This repository is for contributing goodies, which are special tools that reveal instant answers at the top of search results, e.g. calculations or throwing dice.
10
11Most of the existing goodies are listed on the [goodies page](http://duckduckgo.com/goodies.html) and [tech goodies page](http://duckduckgo.com/tech.html).
12
13We also maintain a list of [requested goodies](https://github.com/duckduckgo/duckduckgo/wiki/Goodies), but whatever you want to attempt is welcome.
14
15
spice.md https://github.com/a-West/duckduckgo.git | Markdown | 98 lines
1# Spice
2[Index](https://github.com/duckduckgo/duckduckgo#index) / **Spice**
3
4---
5
6This documentation section contains spice-specific plugin information. Its contents are relevant if you're doing anything related to spice.
7
8## Spice Handle Functions
9[Index](https://github.com/duckduckgo/duckduckgo#index) / [Spice](#spice) / **Spice Handle Functions**
10
11---
12Spice plugins have **triggers** and **handle** functions like Goodies, as explained in the [Basic tutorial](http://github.com/duckduckgo/duckduckgo#basic-tutorial). The difference is that Spice handle functions don't return an instant answer directly like Goodies. Instead, they return arguments used to call a JavaScript callback function that then returns the instant answer.
13
14The JavaScript callback function is defined in another file and is explained in detail in the [Spice callback functions](#spice-callback-functions) section. For now let's concentrate on how it gets called via the Spice handle function.
15
README https://bitbucket.org/kisom/surfraw-devel.git | Unknown | 377 lines
1
2        Surfraw - Shell Users' Revolutionary Front Rage Against the Web
3
4Home Page: http://surfraw.alioth.debian.org
5
6        ______  _     _  ______   _______  ______   _______  _  _  _
7       / _____)(_)   (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_)
8      ( (____   _     _  _____) ) _____    _____) ) _______  _  _  _
9       \____ \ | |   | ||  __  / |  ___)  |  __  / |  ___  || || || |
10       _____) )| |___| || |  \ \ | |      | |  \ \ | |   | || || || |
11      (______/  \_____/ |_|   |_||_|      |_|   |_||_|   |_| \_____/
12
13   Surfraw - Shell Users' Revolutionary Front Rage Against the Web
14		 New: http://surfraw.alioth.debian.org
15		 Old: http://surfraw.sourceforge.net/
.keysnail.js https://bitbucket.org/bamanzi/misc-utils | JavaScript | 1,615 lines
1// ========================== KeySnail Init File =========================== //
2
3// You can preserve your code in this area when generating the init file using GUI.
4// Put all your code except special key, set*key, hook, blacklist.
5// ========================================================================= //
6//{{%PRESERVE%
7//* PRESERVE
8
9//** Use Fox Splitter addon to mimic C-x 1/2/3 stuff
10ext.add("other-window", function() {
11    function focusSubBrowserById(aId) {
12        SplitBrowser.getSubBrowserById(aId).browser.contentWindow.focus();
13    }
14
15    var browsers = SplitBrowser.browsers;
prepopulated_engines.json git://github.com/chromium/chromium.git | JSON | 1,151 lines
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file is used during build to generate prepopulated_engines.h/cc.
6// For more details see tools/json_to_struct/json_to_struct.py.
7
8// Engine definitions. See prepopulated_engines_schema.json for the field
9// definitions.
10
11// NOTES:
12//   - CHANGE THE BELOW NUMBERS IF YOU ADD A NEW ENGINE; ID conflicts = bad!
13//     - Make sure you update the int_variables below as described in comments.
14//     - IDs > 1000 are reserved for distribution custom engines.
15//   - NOTIFY the Chrome Webstore team if you add/delete a search engine or
ubiquity.js https://github.com/cosimo/ubiquity-opera.git | JavaScript | 1,411 lines
1// -------------------------------------
2// ==UserScript==
3// @name Ubiquity for Opera
4// @author Cosimo Streppone
5// @ujs:modified 2010-10-22
6// ==/UserScript==
7// -------------------------------------
8//
9
10(function (opera) {
11    if (! opera) return;
12
13    // -----------------------------------------------
14    //
15    //       Firefox Ubiquity emulation layer
spice2.md https://github.com/a-West/duckduckgo.git | Markdown | 1,298 lines
1#Spice Frontend
2
3--------
4
5#Index
6- [Overview](#overview)
7    - [Tech](#tech)
8- [Example #1: NPM (Basic Instant Answer)](#example-1---npm-basic-instant-answer)
9- [Example #2: Alternative.To (Basic Carousel Instant Answer)](#example-2---alternativeto-basic-carousel-instant-answer)
10- [Example #3: Movie (Advanced Instant Answer)](#example-3---movie-advanced-instant-answer)
11- [Example #4: Quixey (Advanced Carousel Instant Answer)](#example-4---quixey-advanced-carousel-instant-answer)
12- [Example #5: Dictionary (More Advanced Instant Answer)](#example-5---dictionary-more-advanced-instant-answer)
13- [Advanced Techniques](#advanced-techniques)
14    - [Slurping Multiple Trigger Words](#slurping-multiple-trigger-words)
15    - [Using API Keys](#using-api-keys)
README git://pkgs.fedoraproject.org/surfraw | Unknown | 371 lines
1
2        Surfraw - Shell Users' Revolutionary Front Rage Against the Web
3
4Home Page: http://surfraw.alioth.debian.org
5
6        ______  _     _  ______   _______  ______   _______  _  _  _
7       / _____)(_)   (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_)
8      ( (____   _     _  _____) ) _____    _____) ) _______  _  _  _
9       \____ \ | |   | ||  __  / |  ___)  |  __  / |  ___  || || || |
10       _____) )| |___| || |  \ \ | |      | |  \ \ | |   | || || || |
11      (______/  \_____/ |_|   |_||_|      |_|   |_||_|   |_| \_____/
12
13   Surfraw - Shell Users' Revolutionary Front Rage Against the Web
14		 New: http://surfraw.alioth.debian.org
15		 Old: http://surfraw.sourceforge.net/
ChangeLog git://pkgs.fedoraproject.org/surfraw | Unknown | 637 lines
12011-07-11  Ian Beckwith  <ianb@erislabs.net>
2
3	* netbsd: fix normal & mail search.
4	  google custom searches were complaining I was a bot, so I
5	  switched to normal google searches with
6	  site:{mail-index,}.netbsd.org.
7	* cia: fix search URL
8
92011-06-17  Ian Beckwith  <ianb@erislabs.net>
10
11	* arxiv: fix -scope=author with single-word queries.
12	  Thanks to Nikos Apostolakis.
13	* btw, note about entry below, netbsd make *does*
14	  support '$<', but only in suffix rules.
15
CONTRIBUTING.md https://github.com/robertbrook/zeroclickinfo-spice.git | Markdown | 84 lines
1# Contributing to the **Spice** repository
2
3
4At DuckDuckGo, we truly appreciate our community members taking the time to
5contribute to our open-source repositories. In an effort to ensure
6contributions are easy for you to make and for us to manage, we have written
7some guidelines that we ask our contributors to follow so that we can handle
8pull requests in a timely manner with as little friction as possible.
9
10### BETA
11
12The new version of DuckDuckGo has launched public beta!
13See the [what's new](https://github.com/duckduckgo/zeroclickinfo-spice/blob/bttf/BETA.md) for the current status and how you can contribute
14to converting the Spice Instant Answers to the new API !
15
helm-net.el https://github.com/jwiegley/dot-emacs.git | Lisp | 608 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2014 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4
5;; This program is free software; you can redistribute it and/or modify
6;; it under the terms of the GNU General Public License as published by
7;; the Free Software Foundation, either version 3 of the License, or
8;; (at your option) any later version.
9
10;; This program is distributed in the hope that it will be useful,
11;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;; GNU General Public License for more details.
14
15;; You should have received a copy of the GNU General Public License
wot.js https://bitbucket.org/_PH_/opera-userjs | JavaScript | 1,993 lines
1// ==UserScript== 
2// @name WOT For Opera
3// @author PH
4// @namespace http://my.opera.com/PH`/about/
5// @version 0.964
6// @description : displays a WOT logo near results on some search engines
7// @description : supported search engines : Google.com, Yahoo.com, Exalead.fr, Ask.com, Lemoteur.fr, orange.fr, voila.fr, seek.fr, altavista.com, netscape.com, bing.com, alltheweb.com, yandex.ru, yebol.com, baidu.com, yauba.com, greenmaven.com, ecocho.eu, goodtree.com, ethicle.com, clusty.com, dogpile.com, www.metacrawler.com, cuil.com, Lycos, Mugurdy.com, Blackle.com, Rambler.ru, Naver.com, Sapo.pt, Search.ch, Miner.hu, Najdi.si
8// @description : social bookmarkers supported: digg.com, delicious.com, Stumbleupon.com, blogmarks.net, yoolink.fr, Wikio, Technorati, Sphere.com
9// @ujs:category browser: enhancements 
10// @ujs:published 2009-11-07 10:00
11// @ujs:modified 2010-07-25 21:00
12// @ujs:documentation N/A
13// @ujs:download
14// @include http://*
15// @exclude http://localhost/*
IsItUp.t git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 53 lines
1#!/usr/bin/env perl
2
3use strict;
4use warnings;
5use Test::More;
6use DDG::Test::Spice;
7use utf8;
8
9ddg_spice_test(
10    [qw( DDG::Spice::IsItUp )],
11    'is duckduckgo.com up' => test_spice(
12        '/js/spice/is_it_up/duckduckgo.com',
13        call_type => 'include',
14        caller => 'DDG::Spice::IsItUp',
15    ),
responses.yml git://github.com/duckduckgo/zeroclickinfo-goodies.git | YAML | 244 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use title.  If info_url is included, the words surrounded with  will be linked
3#
4# in the HTML version.  The url will be appended to the text version.
5#
6# Otherwise, include both text and html keys.
7#
8# If more than one keyword applies, add an aliases key with an array ref of string aliases.
9---
10about:
11  title: "Want to know more about us?"
12  subtitle: "Visit our About page"
13  url: https://duckduckgo.com/about
14ads:
15  aliases:
helm-net.el https://github.com/adamchandra/emacs-live.git | Emacs Lisp | 607 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2014 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4
5;; This program is free software; you can redistribute it and/or modify
6;; it under the terms of the GNU General Public License as published by
7;; the Free Software Foundation, either version 3 of the License, or
8;; (at your option) any later version.
9
10;; This program is distributed in the hope that it will be useful,
11;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;; GNU General Public License for more details.
14
15;; You should have received a copy of the GNU General Public License
all_search_engines.xml https://github.com/AfterMoon/packages_apps_Browser.git | XML | 759 lines
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
helm-net.el https://github.com/aguyasu/emacs_init.el.git | Emacs Lisp | 607 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2014 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4
5;; This program is free software; you can redistribute it and/or modify
6;; it under the terms of the GNU General Public License as published by
7;; the Free Software Foundation, either version 3 of the License, or
8;; (at your option) any later version.
9
10;; This program is distributed in the hope that it will be useful,
11;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;; GNU General Public License for more details.
14
15;; You should have received a copy of the GNU General Public License
helm-net.el https://github.com/AlohaWorld/emacs.archive.git | Emacs Lisp | 526 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2015 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4
5;; This program is free software; you can redistribute it and/or modify
6;; it under the terms of the GNU General Public License as published by
7;; the Free Software Foundation, either version 3 of the License, or
8;; (at your option) any later version.
9
10;; This program is distributed in the hope that it will be useful,
11;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;; GNU General Public License for more details.
14
15;; You should have received a copy of the GNU General Public License
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21