Skip to main content

Library for querying the Duck Duck Go API, updated for python3

Project description

PyPI version Code style: black Python 3.6+ supported


A Python library for querying the Duck Duck Go API.

Copyright Michael Stephens, released under a BSD-style license.

Updated for Python3 by Jacobi Petrucciani



To install run

pip install ddg3


python install


import ddg3 
r = ddg3.query('Duck Duck Go') 
r.type                         # 'answer' 
r.results[0].text              # 'Official site' 

r.results[0].url               # '<>' 
r.abstract.url                 # '<>' 
r.abstract.source              # 'Wikipedia'

r = ddg3.query('Python') 
r.type                         # 'disambiguation' 

r.related[6].text              # 'Python (programming language), a computer programming language' 
r.related[6].url               # '<>'

r = ddg3.query('1 + 1') 
r.type                         # 'nothing' 

r.answer.text                  # '1 + 1 = 2' 
r.answer.type                  # 'calc'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddg3-0.6.8.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

ddg3-0.6.8-py3-none-any.whl (4.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page