Skip to content

Commit 001e201

Browse files
committed
organize README.rst
1 parent eb3db7e commit 001e201

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ How to configure
3737
----------------
3838

3939
Replace the default ``http`` and ``https`` in Scrapy's
40-
`DOWNLOAD_HANDLERS <https://docs.scrapy.org/en/latest/topics/settings.html>`_
40+
`DOWNLOAD_HANDLERS <https://docs.scrapy.org/en/latest/topics/settings.html#std-setting-DOWNLOAD_HANDLERS>`_
4141
in the ``settings.py`` of your Scrapy project.
4242

4343
You also need to set the ``ZYTE_API_KEY``.
4444

45+
Lastly, make sure to `install the asyncio-based Twisted reactor
46+
<https://docs.scrapy.org/en/latest/topics/asyncio.html#installing-the-asyncio-reactor)>`_
47+
in the ``settings.py`` file as well:
48+
49+
Here's example of the things needed inside a Scrapy project's ``settings.py`` file:
50+
4551
.. code-block:: python
4652
4753
DOWNLOAD_HANDLERS = {
@@ -52,12 +58,6 @@ You also need to set the ``ZYTE_API_KEY``.
5258
# Having the following in the env var would also work.
5359
ZYTE_API_KEY = "<your API key>"
5460
55-
Also, make sure to `install the asyncio-based Twisted reactor
56-
<https://docs.scrapy.org/en/latest/topics/asyncio.html#installing-the-asyncio-reactor)>`_
57-
in the ``settings.py`` file as well:
58-
59-
.. code-block:: python
60-
6161
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
6262
6363
How to use

0 commit comments

Comments
 (0)