Add a deprecation notice for the offsite spider middleware.

This commit is contained in:
Andrey Rakhmatullin 2025-06-29 00:45:26 +05:00
parent ba1cedee1b
commit 03fe7a6424
1 changed files with 11 additions and 0 deletions

View File

@ -1219,6 +1219,17 @@ Security bug fixes
.. _defusedxml: https://github.com/tiran/defusedxml
Deprecations
~~~~~~~~~~~~
- ``scrapy.spidermiddlewares.offsite.OffsiteMiddleware`` (a spider
middleware) is now deprecated and not enabled by default. The new
downloader middleware with the same functionality,
:class:`scrapy.downloadermiddlewares.offsite.OffsiteMiddleware`, is enabled
instead.
(:issue:`2241`, :issue:`6358`)
Bug fixes
~~~~~~~~~