python-duckduckgo
A Python library for querying the Duck Duck Go API.
Copyright Michael Stephens <me@mikej.st>, released under a BSD-style license.
Source: http://github.com/mikejs/python-duckduckgo
Installation
To install run
python setup.py install
Usage
>>> import duckduckgo >>> r = duckduckgo.query('Duck Duck Go') >>> r.type 'answer' >>> r.results[0].text 'Official site' >>> r.results[0].url 'http://duckduckgo.com/' >>> r.abstract.url 'http://en.wikipedia.org/wiki/Duck_Duck_Go' >>> r.abstract.source 'Wikipedia'>>> r = duckduckgo.query('Python') >>> r.type 'disambiguation' >>> r.related[6].text 'Python (programming language), a computer programming language' >>> r.related[6].url 'http://duckduckgo.com/Python_(programming_language)'>>> r = duckduckgo.query('1 + 1') >>> r.type 'nothing' >>> r.answer.text '1 + 1 = 2' >>> r.answer.type 'calc'
Metadata
Release files for duckduckgo 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duckduckgo-0.1.tar.gz | 2.9 kB | Without provenance | Details for duckduckgo-0.1.tar.gz |
Release files / duckduckgo-0.1.tar.gz
| Download URL | duckduckgo-0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a07ad344014da3b269e9fc449d71b0b471a9fcd1851744fea0c64d758a21ca4
|
|
BLAKE2b-256 checksum How to use checksums |
ce781e526aa58258db84b1f4a0493438f90aeddc9f42eb96be930c0fd67f7fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for duckduckgo 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.