Hello
ddginternal
is a Python library for accessing DuckDuckGo's internal APIs through internal runtime Javascript parsing.
Key features:
- Keep your search private with DuckDuckGo.
- Works with Python 3.6+, and most platforms.
- Rust-backed, faster parsing.
- Simple API, flexible.
- Light. One dependency only.
Bash
$ pip install ddginternal
Get started
To search, use the search
function:
Python
import ddginternal
ddginternal.search("breaking bad")
# Result(web=[...23], images=[...20], news=[...5])
The numbers indicate the amount of results received for each category.