import time import os import time import os import sys # print(sys.argv[1]) can = sys.argv[1] # print(type(can)) if can == 'roll': while True: os.system("scrapy crawl roll_zuqiu") time.sleep(1) os.system("scrapy crawl ball_status") time.sleep(1) os.system("scrapy crawl ball_status_update") time.sleep(10) if can == 'notroll': while True: os.system("scrapy crawl zuqiu") time.sleep(1) os.system("scrapy crawl wqbodan") time.sleep(1) os.system("scrapy crawl wangqiu") time.sleep(1) os.system("scrapy crawl lanqiu") time.sleep(1) os.system("scrapy crawl guanjun") time.sleep(1) os.system("scrapy crawl bangqiu") time.sleep(30)