[doc] FAQ entry about the IPv6 and the DNS_RESOLVER setting

This commit is contained in:
Eugenio Lacuesta 2020-01-18 01:52:29 -03:00
parent 302d3f552b
commit b471765d40
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 7 additions and 0 deletions

View File

@ -353,6 +353,13 @@ method for this purpose. For example::
for _ in range(item['multiply_by']):
yield deepcopy(item)
Does Scrapy support IPv6 addresses?
-----------------------------------
Yes, by setting :setting:`DNS_RESOLVER` to ``scrapy.resolver.CachingHostnameResolver``.
Note that by doing so, you lose the ability to set a specific timeout for DNS requests
(the value of the :setting:`DNS_TIMEOUT` setting is ignored).
.. _user agents: https://en.wikipedia.org/wiki/User_agent
.. _LIFO: https://en.wikipedia.org/wiki/Stack_(abstract_data_type)