'Setup redis connection and idle signal.
This should be called after the spider has set its crawler object.'

def setup_redis(self):

    if (not self.redis_key):
        self.redis_key = ('%s:start_urls' % self.name)
    self.server = connection.from_settings(self.crawler.settings)
    self.crawler.signals.connect(self.spider_idle, signal=signals.spider_idle)
    self.crawler.signals.connect(self.item_scraped, signal=signals.item_scraped)
    self.log(("Reading    URLs    from    redis    list    '%s'" % self.redis_key))
