add import to the example.

This commit is contained in:
bulat 2023-05-11 13:15:30 +05:00
parent fc2d1b2171
commit b62c1263de
1 changed files with 2 additions and 0 deletions

View File

@ -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"]