DuckDuckGo search via Python library and CLI tool
Top 25.5% on sourcepulse
This Python library provides programmatic access to DuckDuckGo search results for text, images, videos, and news. It's designed for developers and researchers who need to automate web scraping or data collection from DuckDuckGo, offering flexibility in query parameters and proxy support.
How It Works
The library utilizes HTTP requests to interact with DuckDuckGo's search interfaces, specifically targeting html.duckduckgo.com
or lite.duckduckgo.com
backends. It parses the returned HTML or JSON to extract relevant data, abstracting away the complexities of direct web scraping. The DDGS
class allows for configurable search parameters, including regions, safe search settings, time limits, and media-specific filters.
Quick Start & Requirements
pip install -U duckduckgo_search
Highlighted Details
Maintenance & Community
The project is maintained by deedy5. Community interaction channels are not explicitly listed in the README.
Licensing & Compatibility
The library is provided for educational purposes and is not intended for commercial use or any purpose that violates DuckDuckGo's Terms of Service. The specific license is not stated, but the disclaimer implies a non-commercial, educational use restriction.
Limitations & Caveats
The library is explicitly stated as not affiliated with DuckDuckGo and is for educational purposes only, with a disclaimer against commercial use or violation of DuckDuckGo's Terms of Service. DuckDuckGo's terms may change, potentially impacting the library's functionality.
1 day ago
1 day