run_spider.py 211 B

1234567
  1. import os
  2. def run_spider(spider_name):
  3. print("start crawling {} ......".format(spider_name))
  4. os.system("scrapy crawl {}".format(spider_name))
  5. print("finish crawling {} ......".format(spider_name))