【APScheduler + scrapy定时爬虫】ValueError: signal only works in main thread
之前一直用shell写的crontab来跑爬虫脚本最近换了apscheduler来管理定时任务代码大概是这个样子import sys, osfrom scrapy.cmdline import executefrom apscheduler.schedulers.blocking import BlockingSchedulerdef start_scrapy(): sys.path.append(os.path.dirname(os.path.abspath(__file__)))