How to use APscheduler with scrapy
问题 have this code who run scrapy crawler from script(http://doc.scrapy.org/en/latest/topics/practices.html#run-scrapy-from-a-script). But it doesn't work. from twisted.internet import reactor from scrapy.crawler import Crawler from scrapy import log,signals from spiders.egov import EgovSpider from scrapy.utils.project import get_project_settings def run(): spider =EgovSpider() settings = get_project_settings() crawler = Crawler(settings) crawler.signals.connect(reactor.stop, signal=signals