def get_crawler(spidercls=None, settings_dict=None):
 from scrapy.crawler import CrawlerRunner
 from scrapy.spiders import Spider
 runner = CrawlerRunner(settings_dict)
 return runner.create_crawler((spidercls or Spider))

def get_crawler ( spidercls = None , settings_dict = None ) : from scrapy . crawler import CrawlerRunner from scrapy . spiders import Spider runner = CrawlerRunner ( settings_dict ) return runner . create_crawler ( ( spidercls or Spider ) )
return an unconfigured crawler object .