Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add a deprecation notice for the offsite spider middleware.

Andrey Rakhmatullin03fe7a642484
diff --git a/docs/news.rst b/docs/news.rst
index b2fe78bc6..5fad2e425 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -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
~~~~~~~~~