Skip to content

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

Merge branch '2.13'

Andrey Rakhmatullin0390176ecdca
diff --cc docs/news.rst
index d3e6c6774,b2fe78bc6..36d229760
--- a/docs/news.rst
+++ b/docs/news.rst
@@@ -3,18 -3,52 +3,66 @@@
Release notes
=============
+Scrapy VERSION (unreleased)
+---------------------------
+
+Backward-incompatible changes
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+- If you set the :setting:`TWISTED_REACTOR` setting to a :ref:`non-asyncio
+ value <disable-asyncio>` at the :ref:`spider level <spider-settings>`, you
+ may now need to set the :setting:`FORCE_CRAWLER_PROCESS` setting to
+ ``True`` when running Scrapy via :ref:`its command-line tool
+ <topics-commands-crawlerprocess>` to avoid a reactor mismatch exception.
+
++
+ .. _release-2.13.2:
+
+ Scrapy 2.13.2 (2025-06-09)
+ --------------------------
+
+ - Fixed a bug introduced in Scrapy 2.13.0 that caused results of request
+ errbacks to be ignored when the errback was called because of a downloader
+ error.
+ (:issue:`6861`, :issue:`6863`)
+
+ - Added a note about the behavior change of
+ :func:`scrapy.utils.reactor.is_asyncio_reactor_installed` to its docs and
+ to the "Backward-incompatible changes" section of :ref:`the Scrapy 2.13.0
+ release notes <release-2.13.0>`.
+ (:issue:`6866`)
+
+ - Improved the message in the exception raised by
+ :func:`scrapy.utils.test.get_reactor_settings` when there is no reactor
+ installed.
+ (:issue:`6866`)
+
+ - Updated the :class:`scrapy.crawler.CrawlerRunner` examples in
+ :ref:`topics-practices` to install the reactor explicitly, to fix
+ reactor-related errors with Scrapy 2.13.0 and later.
+ (:issue:`6865`)
+
+ - Fixed ``scrapy fetch`` not working with scrapy-poet_.
+ (:issue:`6872`)
+
+ - Fixed an exception produced by :class:`scrapy.core.engine.ExecutionEngine`
+ when it's closed before being fully initialized.
+ (:issue:`6857`, :issue:`6867`)
+
+ - Improved the README, updated the Scrapy logo in it.
+ (:issue:`6831`, :issue:`6833`, :issue:`6839`)
+
+ - Restricted the Twisted version used in tests to below 25.5.0, as some tests
+ fail with 25.5.0.
+ (:issue:`6878`, :issue:`6882`)
+
+ - Updated type hints for Twisted 25.5.0 changes.
+ (:issue:`6882`)
+
+ - Removed the old artwork.
+ (:issue:`6874`)
+
++
.. _release-2.13.1:
Scrapy 2.13.1 (2025-05-28)
diff --cc scrapy/utils/reactor.py
index 76f42392b,1b179f988..ce4c01731
--- a/scrapy/utils/reactor.py
+++ b/scrapy/utils/reactor.py
@@@ -221,11 -203,10 +221,16 @@@ def is_asyncio_reactor_installed() -> b
Raise a :exc:`RuntimeError` if no reactor is installed.
+ In a future Scrapy version, when Scrapy supports running without a Twisted
+ reactor, this function won't be useful for checking if it's possible to use
+ asyncio features, so the code that that doesn't directly require a Twisted
+ reactor should use :func:`scrapy.utils.asyncio.is_asyncio_available`
+ instead of this function.
++
+ .. versionchanged:: 2.13
+ In earlier Scrapy versions this function silently installed the default
+ reactor if there was no reactor installed. Now it raises an exception to
+ prevent silent problems in this case.
"""
if not is_reactor_installed():
raise RuntimeError(