Skip to content

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

add import to the example.

bulatb62c1263de4b
diff --git a/docs/topics/asyncio.rst b/docs/topics/asyncio.rst
index fcf44c0cb..2ad784335 100644
--- a/docs/topics/asyncio.rst
+++ b/docs/topics/asyncio.rst
@@ -106,6 +106,8 @@ within a spider callback:
.. code-block:: python
+ from scrapy.utils.defer import maybe_deferred_to_future
+
class SingleRequestSpider(scrapy.Spider):
name = "single"
start_urls = ["https://example.org/product"]