duckduckgo / duckduckgo Goto Github PK
View Code? Open in Web Editor NEWDuckDuckGo Instant Answer Infrastructure
Home Page: http://duckduckhack.com/
License: Other
DuckDuckGo Instant Answer Infrastructure
Home Page: http://duckduckhack.com/
License: Other
When the query is entered, the following is shown:
⚄ (random)
Tried the alternative (multiple) dice rolling plugin, which worked fine.
When I search: "Vancouver Weather" in DDG, I get weather for Vancouver, WA. I'm actually looking for Vancouver, BC weather. I can fix this by searching for "Vancouver, BC Weather", but that is annoying, considering this is a search I might make quite often.
Perhaps a solution for this is to prioritize cities based on your region in settings. Since I set my region to Canada, perhaps it should prioritize the Vancouver in Canada.
https://duckduckgo.com/goodies/#Everyday/time
Description says "Get the current time for your location"
Actual result: wikipedia article
https://duckduckgo.com/goodies/#Everyday/Black_Lab_Bistro gives "No Results"
I use an Android based phone with the screen resolution of 240*320. I use the Opera mini browser for browsing and i tried duckduckgo in it. But what i got was a page with just a text box in the top left corner and a button with green color on it and no text. I dont know whether it is a bug or it is incompatible with the browser..
On the html version of duckduckgo, You cannot search at all. The post request seems to reroute the page back to duckduckgo.com/html/ the only way to use the html version is to put ?q= after /html/ not sure how to fix this but the post request seems to be misubmitting.
https://github.com/duckduckgo/duckduckgo/blob/master/lib/DDG/Test/Spice.pm#L77
As documented, this syntax should be legal, however it currently breaks.
I have triggers startend => "idreambooks", "book reviews", "book review";, but somehow "the book of joe reviews" triggers. Is it splitting the strings?
I'm getting this as my output:
Query: the book of joe reviews
You entered: the book of joe reviews
DDG::ZeroClickInfo::Spice {
Parents Moo::Object
public methods (9) : call, call_data, caller, call_path, call_type, has_call, has_call_data, has_call_type, new
private methods (0)
internals: {
call "/js/spice/book/the",
caller "DDG::Spice::Book",
call_type "include",
is_cached 1,
is_unsafe 0
}
}
The query can have XSS bugs in it and so should not be displayed directly. I'm not sure if we currently offer them an escaped version like we have in the backend q_escape. If not we should and it can mimic the backend function.
Also, we need to add to the docs about not returning the query directly in html. For non-HTML we already escape it.
Original issue moved here from duckduckgo/zeroclickinfo-goodies#223
//cc @yegg
When I search, for example, "london map" (https://duckduckgo.com/?q=london+map), the map is displayed correctly, but the "More at OpenStreetMap" link goes to a blank page (http://open.mapquest.com/?q=[51.5072759,-0.1276597]).
Issue 1 This should be the same site as the MapQuest link.
Issue 2 However, linking it to MapQuest would be incorrect, as the link says "More at OpenStreetMap". So it instead should go to http://www.openstreetmap.org/relation/65606 (what you get when you search up "London" in OpenStreetMap).
https://duckduckgo.com/goodies/#Everyday/weather gives "No Results"
https://duckduckgo.com/goodies/#Geography/37_771008___122_41175 shows "No more results. Try Google / Bing / More..."
https://duckduckgo.com/?q=37.771008%2C+-122.41175 shows some results, but nothing from "Coordinate mapping" plugin.
https://duckduckgo.com/goodies/#Everyday/msft https://duckduckgo.com/goodies/#Everyday/msft_vs_aapl_5yr both gives "No Results".
Note: https://duckduckgo.com/?q=msft shows expected result.
The GoldenRatio goodie defines
zci answer_type => "golden_ratio";
but really this should probably happen by default, e..g CamelCase -> camel_case
Searching for "what language is ありがとうございます" says:
"This text is definitely Japanese (120% sure)."
I suggest adding a simple if statement bring >100% results down to 100%, or take a closer look at the algorithm.
https://duckduckgo.com/goodies/#Math/circumferance_circle_1
"circumference" not "circumferance"
It would be better, if de_DE is used as fallback for de_CH instead of en_US on UI translation. Maybe there are similar scenarios for other languages.
When you search for a Mercurial command, like hg commit
, it gives a short description from the documentation site. However, clicking on that to go to the documentation site doesn't show you the correct spot on the page.
It links to http://www.selenic.com/mercurial/hg.1.html#hg commit
, when it should be http://www.selenic.com/mercurial/hg.1.html#commit
. (The difference is the last part, after the #
. It should just be the command name, without hg
in front of it.
(Is the code for these plugins available somewhere? I'm sure this is a quick fix, but I don't see anywhere to do that myself.)
For example, if it is an internal package or just triggered through internal mechanisms.
Reproduce:
I am sending a bang request from my small WindowsPhone8 app for "pizza" (or any other) using allrecipes!
It lookes like this: http://api.duckduckgo.com/?q=!recipe%20pizza&format=json&pretty=1&no_redirect=1
Expected outcome:
I would expect to be taken to the allrecipes website and it should search for "pizza"
Current outcome:
It searches for "pizzal". To any search term an l is added
JSON:
{
"Definition" : "",
"DefinitionSource" : "",
"Heading" : "",
"AbstractSource" : "",
"Image" : "",
"RelatedTopics" : [],
"AbstractText" : "",
"Abstract" : "",
"AnswerType" : "",
"Type" : "E",
"Redirect" : "http://allrecipes.com/search/default.aspx?qt=k&rt=r&wt=pizzal&pqt=k&ms=0&fo=0",
"DefinitionURL" : "",
"Answer" : "",
"Results" : [],
"AbstractURL" : ""
}
It shows too bad when I search a keyword: "鱼骨头MM" that use chromium browser. But after add a space, the result of keyword "鱼骨头 MM" is ok.
Maybe this is a bug to be fix. tks
https://duckduckgo.com/?q=%E9%B1%BC%E9%AA%A8%E5%A4%B4MM
https://duckduckgo.com/?q=%E9%B1%BC%E9%AA%A8%E5%A4%B4+MM
Another page same with, but with a space:
https://duckduckgo.com/?q=xfce4+%E6%88%AA%E5%9B%BE%E8%BD%AF%E4%BB%B6
So, when I run !pep 8
I get URL http://www.python.org/dev/peps/pep-8/
which is wrong. Numbers are always zero padded and four digits long, so the correct URL is http://www.python.org/dev/peps/pep-0008/
Duckduckgo instant information requires other sites to give out JSON feeds, when many sites only offer XML information feeds.
More specifically, support stuff like list !hackage !
which would follow the first link from the !hackage
bang query. And in general, it would support all bang patterns which simply use a site:
query. I'd be more than happy to implement this, perhaps a quick hint for where to look first would be useful.
The DDG+ Firefox plugin always repositions itself to the very right of the toolbar when Firefox is restarted. This adds an element of annoyance as the mouse pointer is usually resting further away toward the center, requiring a large movement to the edge of the window.
https://duckduckgo.com/goodies/#Sysadmin/pypy_achemkit
should be "pypi" not "pypy"
See also https://duckduckgo.com/goodies/#Web_Design/pypi_twisted
It would be great to have a good Readme. It's hard to understand how much DDG is available as source code :-)
thanks
If the query is "3+3" the API only completes a web search and gives no answer. If A more complex expression like "2+5-3" is entered, "25-3" is evaluated.
(Improvement Desired)
The "java" plugin (https://duckduckgo.com/goodies#Geek/java_string) links to Java SE6 javadoc pages, this is problematic when you're searching for Java7 classes as it won't work
I believe the sourcecode for the plugin is located here https://github.com/duckduckgo/zeroclickinfo-fathead/tree/master/share/java
https://duckduckgo.com/goodies/#Special_Interest/genesis_1_2 shows wikipedia article https://en.wikipedia.org/wiki/Genesis_1%3A2 instead of result from Bible.org
Scientific notation of numbers (e.g. 100=1e2) only works sometimes.
Examples:
It would be slick if !mcpan Moose would load http://beta.metacpan.org/search?q=Moose (for various definitions of Moose). The MetaCPAN pages are much cleaner and there is a GSoC grant to improve them.
Also I happen to use !cpan as part of my daily workflow, having !mcpan would be nice :)
https://duckduckgo.com/goodies/#Geek/flip_text should "flip and mirror text", but instead shows wikipedia article https://en.wikipedia.org/wiki/Transformation_of_text
https://duckduckgo.com/goodies/#Entertainment/i_m_a_walking_contradiction shows "No Results", but https://duckduckgo.com/?q=i%27m+a+walking+contradiction works as expected.
https://duckduckgo.com/goodies/#Science/_r_science_einstein gives "No Results"
It seems like the temperature unit (celsius vs fahrenheit) is determined based on the location you search for.
For example:
When I search for "Vancouver, WA weather" I get fahrenheit, and when I search for "Vancouver, BC weather" I get celsius.
This is undesireable because I often want to see the weather in American cities in celsius. I have my region set to Canada in settings. Shouldn't the unit be determined by that region, rather than the search target?
I can't seem to find any way of changing this through weather.io either. The settings there don't seem to affect DDG.
The keyword.URL can be changed to https://duckduckgo.com/?q= in order to search with DDG. Search parameters can not be used for the adress bar search (likehttps://duckduckgo.com/?q=SEARCH&kl=de-d). This should be fixed as it annoying for users from non English speaking countries because the results are not good for them without the region specific search.
I wanted to click the 'ask us' link in step 2 of the Getting Started section but unfortunately the link is broken.
It's trying to link to: /duckduckgo/duckduckgo/blob/master/FAQ.md - this document doesn't appear to exist.
https://duckduckgo.com/goodies#Everyday/is_it_snowing_ gives "No Results"
https://duckduckgo.com/goodies/#Economy_and_Finance/agriculture_contribution_to_gdp shows wikipedia article https://en.wikipedia.org/wiki/Agriculture_in_Uruguay#Contemporary_agricultural_contribution_to_Uruguayan_economy instead of zanran data.
Also https://duckduckgo.com/goodies/#Economy_and_Finance/oil_production_in_saudi_arabia shows wikipedia article https://en.wikipedia.org/wiki/Oil_reserves_in_Saudi_Arabia#Production
The python bang does not work any more since a couple of days.
Type for instance sorted !python
in duckduckgo. Instead of searching the doc, it displays the doc search page with an empty field : https://docs.python.org/2/search.html
https://duckduckgo.com/goodies/#Programming/linux_enonent gives "No Results"
https://duckduckgo.com/goodies/#Everyday/define_trex gives "No Results"
https://duckduckgo.com/goodies/#Social/gravatar_beau_at_dentedreality_com_au gives "No Results"
PS. LOL! I was testing all goodies, and got blocked for 1h.
https://duckduckgo.com/goodies/#Entertainment/heads_or_tails gives "No Results"
https://duckduckgo.com/goodies/#Words_and_Games/addressable_cursor gives "No Results"
https://duckduckgo.com/goodies/#Geography/how_long_is_the_longest_river should give result from Wolfram|Alpha, but gives "No Results"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.