Asynchronous and Synchronous DuckDuckGo Search Engine Scraper
Scrapes the duckduckgo search engine.
Asynchronous Example
from ddg_scraper import DuckScraper
import trio
duck_scraper = DuckScraper()
async def main():
async with duck_scraper.search("python") as results:
async for result in results:
...
trio.run(main)
Synchronous Example
from ddg_scraper import DuckScraper
duck_scraper = DuckScraper()
with duck_scraper.search("python") as results:
for result in results:
...
In both examples, result is ddg_scraper.SearchResult
Attributes and Methods of ddg_scraper.SearchResult
Attributes
titleurlfaviconsnippet
How To Install
- Using pip:
pip install ddg-scraper - Manual:
- Clone the folder somewhere
- CD to the location
- Install the packages listed in
requirements.txt(pip install -r requirements.txt) - Copy the folder, ddg_scraper where you want to use it.
Metadata
Release files for ddg-scraper 2.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 |
|---|---|---|---|---|
| ddg_scraper-2.0.1.tar.gz | 4.5 kB | Without provenance | Details for ddg_scraper-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ddg_scraper-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for ddg_scraper-2.0.1-py3-none-any.whl |
Total release size: 11.1 kB
Release files / ddg_scraper-2.0.1.tar.gz
| Download URL | ddg_scraper-2.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39da8a1be03513aa4306dabab0c0d5c19a4dfb4f8b942ca6ce77de201ce9d276
|
|
BLAKE2b-256 checksum How to use checksums |
d3ca9b2b348df4f56ccf6ec59650145bc3bd84ca6fcc74a9fe3250749b69c78d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Release files / ddg_scraper-2.0.1-py3-none-any.whl
| Download URL | ddg_scraper-2.0.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20388470ee6cc60e3dd25871f6516b49af7e91efb663496533b5639e4cd46639
|
|
BLAKE2b-256 checksum How to use checksums |
fb254975a1dbb8f8816e7b4f1b3df652341717a210f835a8944c4d4e004ea280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Security for ddg-scraper 2.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.