in the older version we could get the list of spiders(spider names ) with following code, but in the current version (1.4) I faced with
[py.warnings] WARNING: run-all-spiders.py:17: ScrapyDeprecationWarning: CrawlerRunner.spiders attribute is renamed to CrawlerRunner.spider_loader.
for spider_name in process.spiders.list():
# list all the available spiders in my project
Use crawler.spiders.list()
:
>>> for spider_name in crawler.spiders.list():
... print(spider_name)
How Can I get spiders list (and equivalent class names) in Scrapy?