cd spider
touch schedule.py
vim schedule.py
import time
import os
while True:
print('the first spider')
os.system("scrapy crawl as")
print('the second spider')
os.system("scrapy crawl bs")
# 6hours
time.sleep(21600)
python schedule.py
网友评论