Metadata-Version: 2.1
Name: pyduckduckgosearch
Version: 1.2.1
Summary: A Python library for scraping the DuckDuckGo search engine.
Home-page: https://github.com/adahirwar/websearch
Author: Arvind Ahirwar
Author-email: ad.ahirwar@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# websearch
websearch is a Python library for searching DuckDuckGo, easily. websearch uses requests and BeautifulSoup4 to scrape DuckDuckGo. 

## Installation
To install, run the following command:
```bash
python3 -m pip install pyduckduckgosearch
```

## usage
To get results for a search term, simply use the search function in websearch. For example, to get results for "DuckDuckGo" in DuckDuckGo, just run the following program:
```python
from websearch import search
keywords = 'what is machine learning'
results = search(keywords, region='wt-wt', safesearch='Moderate', time='y', max_results=2)
print(results.__next__().__dict__)
```


