def create(self, spider_name, **spider_kwargs):
        try:
            spcls = self._spiders[spider_name]
        except __HOLE__:
            raise KeyError("Spider not found: %s" % spider_name)
        if hasattr(self, 'crawler') and hasattr(spcls, 'from_crawler'):
            return spcls.from_crawler(self.crawler, **spider_kwargs)
        else:
            return spcls(**spider_kwargs)
dataset/ETHPy150Open wcong/ants/ants/crawl/spidermanager.py/SpiderManager.create