1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-27 10:04:58 +00:00

renamed extension: DelayedCloseDomain to SpiderCloseDelay

--HG--
rename : scrapy/contrib/delayedclosedomain.py => scrapy/contrib/spiderclosedelay.py
This commit is contained in:
Pablo Hoffman 2009-11-21 15:17:38 -02:00
parent 326090d4a4
commit 1a81ab6f07

View File

@ -1,6 +1,6 @@
"""
DelayedCloseDomain is an extension that keeps open a domain until a
configurable amount of idle time is reached
SpiderCloseDelay is an extension that keeps a idle spiders open until a
configurable amount of idle time has elapsed
"""
from time import time
@ -14,9 +14,9 @@ from scrapy.core.exceptions import NotConfigured, DontCloseSpider
from scrapy.conf import settings
class DelayedCloseDomain(object):
class SpiderCloseDelay(object):
def __init__(self):
self.delay = settings.getint('DOMAIN_CLOSE_DELAY')
self.delay = settings.getint('SPIDER_CLOSE_DELAY')
if not self.delay:
raise NotConfigured