Scrapy crawl from script always blocks script execution after scraping
问题 I am following this guide http://doc.scrapy.org/en/0.16/topics/practices.html#run-scrapy-from-a-script to run scrapy from my script. Here is part of my script: crawler = Crawler(Settings(settings)) crawler.configure() spider = crawler.spiders.create(spider_name) crawler.crawl(spider) crawler.start() log.start() reactor.run() print \"It can\'t be printed out!\" It works at it should: visits pages, scrape needed info and stores output json where I told it(via FEED_URI). But when spider