scrapy-poet is the web-poet Page Object pattern implementation for Scrapy. scrapy-poet allows to write spiders where extraction logic is separated from the crawling one. With scrapy-poet is possible to make a single spider that supports many sites with different layouts.
Requires Python 3.10+ and Scrapy >= 2.6.0.
Read the documentation for more information.
License is BSD 3-clause.
Documentation: https://scrapy-poet.readthedocs.io
Source code: https://github.com/scrapinghub/scrapy-poet
Issue tracker: https://github.com/scrapinghub/scrapy-poet/issues
Quick Start
Installation
pip install scrapy-poet
Usage in a Scrapy Project
Add the following inside Scrapy’s settings.py file:
Scrapy ≥ 2.10:
ADDONS = { "scrapy_poet.Addon": 300, }Scrapy < 2.10:
DOWNLOADER_MIDDLEWARES = { "scrapy_poet.InjectionMiddleware": 543, "scrapy.downloadermiddlewares.stats.DownloaderStats": None, "scrapy_poet.DownloaderStatsMiddleware": 850, } REQUEST_FINGERPRINTER_CLASS = "scrapy_poet.ScrapyPoetRequestFingerprinter" SPIDER_MIDDLEWARES = { "scrapy_poet.RetryMiddleware": 275, }
Developing
Setup your local Python environment via:
pip install -r requirements-dev.txt
pre-commit install
Now everytime you perform a git commit, these tools will run against the staged files:
black
isort
flake8
You can also directly invoke pre-commit run –all-files or tox -e linters to run them without performing a commit.
Release files for scrapy-poet 0.27.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scrapy_poet-0.27.2.tar.gz | 91.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scrapy_poet-0.27.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 123.1 kB
Release files / scrapy_poet-0.27.2.tar.gz
| Download URL | scrapy_poet-0.27.2.tar.gz |
|---|---|
| Size | 91.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32f39d7d287c345f5292a692c68bebed257eb0d271273c7149a6a1054f09118a
|
|
BLAKE2b-256 checksum How to use checksums |
490cf6e2433c251f68cbcc1541f7ae9ea53accaeb45ccfdbabcd1fee6c150f89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.
Transparency logRelease files / scrapy_poet-0.27.2-py3-none-any.whl
| Download URL | scrapy_poet-0.27.2-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be30313f1324c15b4291e91d93b6dece259df1f5b4a8f09e2983f4424e1f136d
|
|
BLAKE2b-256 checksum How to use checksums |
9db9332502e17e344d9cefe1dd4c388ad7709548177f5fbc72cc23fe81e75485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.
Transparency log