抓取错误MSG:twisted.internet.error.ReactorNotRestartable

时间:2020-02-26 23:53:11

标签: web-scraping scrapy

我有一个令人毛骨悚然的蜘蛛,我将开始使用以下脚本:

process = CrawlerProcess(get_project_settings())
process.crawl(NqbpSpider)
process.start() # the script will block here until the crawling is finished

但是我遇到了twisted.internet.error.ReactorNotRestartable。如果我不使用get_project_settings()函数,则不会收到此错误。知道为什么会这样吗?

0 个答案:

没有答案