Пример #1
0
 def _clear_dns_cache(self):
     # Scrapy doesn't expire dns records by default, so we force it here,
     # so client can reconnect trough DNS failover.
     dnscache.pop(urlparse(self.url).hostname, None)
Пример #2
0
 def _clear_dns_cache(self):
     # Scrapy doesn't expire dns records by default, so we force it here,
     # so client can reconnect trough DNS failover.
     dnscache.pop(urlparse(self.url).hostname, None)