Questions tagged [duckduckgo-api]

15 questions
38
votes
3 answers

Duckduckgo API getting search results

What I want to do is just submitting string queries (the equivalent of typing into the search bar by hand) and saving the URL of the first results (if there are any). I have asked a similar question ( Python search scraping) and the answer to it…
Nesa
  • 2,895
  • 2
  • 12
  • 19
5
votes
2 answers

DuckDuckGo API - How to get more results?

The default search using the DuckDuckGo API returns only the results on the first page (around 25 I guess). Is there any way to get more results or navigate to the 2nd, 3rd pages of the search results? Websites like Faroo have a parameter called s…
sss90
  • 125
  • 1
  • 1
  • 6
5
votes
1 answer

DuckDuckGo search returns 'List Index out of range'

Here is my Duck Duck Go search script. import duckduckgo r = duckduckgo.query('DuckDuckGo') print r.results[0].url it returns; list index out of range. If i print r.results i get; [] But if i search…
user2626758
  • 117
  • 1
  • 12
2
votes
1 answer

duckduckgo module not working in python 3.4.4

Hi I got the following module from here import urllib import urllib2 import json as j import sys __version__ = 0.242 def query(query, useragent='python-duckduckgo '+str(__version__), safesearch=True, html=False, meanings=True, **kwargs): """ …
Vin
  • 729
  • 9
  • 15
1
vote
1 answer

Python duckduckgo library not installing

I'm trying to install the duckduckgo for Python 3.6 (Windows), but cannot figure out how. I first tried pip install duckduckgo Which raises the exception ModuleNotFoundError: No module named urllib2 Then I tried installing by downloading the…
Eivind
  • 301
  • 6
  • 18
1
vote
1 answer

How to get unique search results?

I am using this(https://github.com/thibauts/duckduckgo) module to scrape duckduckgo search results: >>> import duckduckgo >>> for links in duckduckgo.search('Yellow Chris Martin',max_results=20): ... print links In the output I am getting…
cgkentrus
  • 111
  • 1
  • 1
  • 7
1
vote
0 answers

Mixed Content: The page at 'URL' was loaded over HTTPS | AngularJS

Im making an app, where I want to sent $http.get requests to duckduckgo's API but their requests are done over HTTP. Seeing my site is HTTP is get the following error: angular.js:11756 Mixed Content: The page at 'URL' was loaded over HTTPS, but…
Pex
  • 519
  • 2
  • 12
  • 30
1
vote
1 answer

Decoding JSON from the DuckDuckGo using Golang

I've been using the Go library for DuckDuckGo and it has been working fine except for one thing. In the "RelatedTopics" Section. Usually, it would look like this: { "RelatedTopics" : [ { "Result" : "
Xplane
  • 820
  • 2
  • 8
  • 24
0
votes
0 answers

Browser extension opens a window. Can I click a button in that window using Javascript?

The DuckDuckGo Privacy Essentials browser extension opens this window when clicked: I want to programmatically click the Generate Private Duck Address-button. Can this be done? I probably first need to click the extension icon in the browser's menu…
d-b
  • 695
  • 3
  • 14
  • 43
0
votes
0 answers

How to fetch DuckDuckGo API

i made a single webpage to get DuckDuckGo Instant Answer API result, https://adamorielly.github.io/Ducksearch/ But i'm getting 405 Method Not Allowed response when i just tried to make a fetch GET request, Cross-Origin Request Blocked: The Same…
Adam
  • 11
  • 3
0
votes
2 answers

How to Select DuckDuckGo Element. AJAX

I'm trying to use AJAX to gather search results from DuckDuckGo's Search API. Here's the JavaScript I've written so far: $.ajax({ type: 'GET', url: 'https://api.duckduckgo.com/', data: { q: myhomestate, format: 'json', pretty: 1 }, …
Seth Connell
  • 867
  • 1
  • 9
  • 12
0
votes
1 answer

How can I get search results based on DuckDuckGo API?

I want to decode json file resulted from DuckDuckGo API into a readeble html or PHP string. I try with PHP json_decode, but nothing: $object = json_decode($string, true); echo $object['RelatedTopics']['Result']; Any ideas?
0
votes
2 answers

How to parse JSON response from DuckDuckGo Answers API using Retrofit2?

I'm trying to obtain POJO instances using Gson and Retrofit2. A typical JSON response looks like this. My issue is with the Infobox field. In some cases, (like this) the field would be an object of the following type and an empty string…
Pawan
  • 73
  • 3
  • 10
0
votes
1 answer

"Compilation failed in require at /home/ubuntu/perl5/lib/perl5/App/DuckPAN/Cmd.pm line 22."

I can't seem to get duckpan to work. Here is the error I am receiving, any ideas? Checking for latest App::DuckPAN ... 0.135 Checking for latest DDG Perl package... 0.120 Using the following DDG instant answers: - DDG::Goodie::ABC (Words) -…
Busch
  • 857
  • 10
  • 29
0
votes
1 answer

DuckDuckGo (and other) karma widgets questions

I noticed the "DuckDuckGo" karma widget one day when browsing and decided to play with one. Its purpose is to gather your "karma" from different websites and display a little box like this one: I tried it on my site as follows, and it provides the…
Evgeny
  • 3,320
  • 7
  • 39
  • 50