File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,11 +37,17 @@ How to configure
3737----------------
3838
3939Replace 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 >`_
4141in the ``settings.py `` of your Scrapy project.
4242
4343You 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
You can’t perform that action at this time.
0 commit comments