Update docs/topics/asyncio.rst

Co-authored-by: Adrián Chaves <adrian@chaves.io>
This commit is contained in:
Bulat Khabibullin 2023-05-10 18:31:54 +05:00 committed by GitHub
parent 87d10161cd
commit 57f3140daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -101,8 +101,10 @@ Futures. Scrapy provides two helpers for this:
Async additional requests
=========================
The spider below shows a single use-case of scraping a page and gathering a price from a separate URL::
The spider below shows how to send a request and await its response all from
within a spider callback:
.. code-block:: python
class SingleRequestSpider(scrapy.Spider):
name = "single"