Skip to main content

Monkeypatch scrapy-playwright to use a custom stealth Chromium build

Project description

hamro-scrapy-playwright

Monkeypatches scrapy-playwright to use a custom stealth Chromium build.

Install

pip install hamro-scrapy-playwright

Setup

# settings.py
DOWNLOAD_HANDLERS = {
    "http": "hamro_scrapy_playwright.handler.HamroPlaywrightDownloadHandler",
    "https": "hamro_scrapy_playwright.handler.HamroPlaywrightDownloadHandler",
}
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
PLAYWRIGHT_BROWSER_TYPE = "chromium"

No manual import needed — the handler class triggers the patch and browser download automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hamro_scrapy_playwright-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hamro_scrapy_playwright-0.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file hamro_scrapy_playwright-0.1.2.tar.gz.

File metadata

  • Download URL: hamro_scrapy_playwright-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for hamro_scrapy_playwright-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6d3e3260d0fdcca0829ee6f163e0d83aa68fe27a40662b8050aab97c75333890
MD5 691664d0148f2135e33d40fafd7c8f8f
BLAKE2b-256 6c8d71400086af3dffc7b2aa0e28df40e785c44e9a2e5db499a693d1f7767656

See more details on using hashes here.

File details

Details for the file hamro_scrapy_playwright-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hamro_scrapy_playwright-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ac0327d2299c7df1a1ab66677b2da9484b5691cfd1890cebbc6691acaba5fc7
MD5 bbc8817deb6e871d6410f691431c4c3f
BLAKE2b-256 2120c9e4393a2f7ee326eff992f1e5eefa82f0d262a37d85ff19dccdde422993

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page