Skip to content

Commit

Permalink
Release notes for 0.26.0 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio authored Jan 28, 2025
1 parent 2f75c54 commit 1d2a935
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

0.26.0 (2025-01-DD)
-------------------

* Added an :ref:`add-on <addon>`.

0.25.0 (2024-12-27)
-------------------

Expand Down
31 changes: 28 additions & 3 deletions docs/intro/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ Setup

.. _intro-install:

Install from PyPI::
Install
=======

.. code-block:: bash
pip install scrapy-poet
Then configure:
- For Scrapy ≥ 2.10, install the add-on:
Enable
======

Add the following to your Scrapy configuration to enable scrapy-poet:

.. _addon:

- For Scrapy ≥ 2.10, configure the add-on:

.. code-block:: python
:caption: settings.py
Expand Down Expand Up @@ -54,3 +63,19 @@ Then configure:
SPIDER_MIDDLEWARES = {
"scrapy_poet.RetryMiddleware": 275,
}
Configure
=========

Declare the :setting:`SCRAPY_POET_DISCOVER` setting with a list of modules that
define page objects, so that they can be loaded at run-time.

A best practice is to create a ``pages/`` folder in your Scrapy project, a
sibling of your ``spiders/`` folder, add an empty ``__init__.py`` file to it
to make it a Python module, and declare its import path in the setting:

.. code-block:: python
:caption: settings.py
SCRAPY_POET_DISCOVER = ["myproject.pages"]

0 comments on commit 1d2a935

Please sign in to comment.