Skip to main content

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

  • title
  • url
  • favicon
  • snippet

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)

Source distribution for ddg-scraper 2.0.1
File Size Uploaded
ddg_scraper-2.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ddg-scraper 2.0.1
File Interpreter ABI Platform
ddg_scraper-2.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page