Skip to main content

os-scrapy-aio-resolver

Build Status codecov PyPI - Python Version PyPI

This project provide a async DNS resolver.

Install

pip install os-scrapy-aio-resolver

You can run example spider directly in the project root path

scrapy crawl example

Usage

Settings

  • enable DNS resolver in the project settings file:

    DNS_RESOLVER = "os_scrapy_aio_resolver.AsyncResolver"
    
  • use asyncio reactor

    TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
    

    or you can use os-scrapy command line to start crawling with -r asyncio

    os-scrapy crawl example -r asyncio
    
  • enable/disable DNS cache, set cache size

    DNSCACHE_ENABLED = True
    DNSCACHE_SIZE = 10000
    

Unit Tests

sh scripts/test.sh

License

MIT licensed.

Metadata

Release files for os-scrapy-aio-resolver 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os-scrapy-aio-resolver 0.0.3
File Size Uploaded Provenance
os_scrapy_aio_resolver-0.0.3.tar.gz 6.7 kB Without provenance Details

Release files / os_scrapy_aio_resolver-0.0.3.tar.gz

Download URL os_scrapy_aio_resolver-0.0.3.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5bffaf60f46221a1e3b338bf4264259cb23497e92489c2d3a8f84cfbe75710ce
BLAKE2b-256 checksum
How to use checksums
ed7957b5da3ed4ea6089f000810a28ac9a148103ee01048f38b6dd2988f14fcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7

Security for os-scrapy-aio-resolver 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

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