python reptiles achieve regular implementation scrapy

Write a program timed reptiles in scrapy project main.py , directly on the storage directory code scrapy will be able to set the time of timer multiple times.

Time Import 
Import os 
 
the while True: 
    os.system ( "scrapy News crawl") 
    the time.sleep (86400) # run once every 24 * 60 * 60 = 86400s one day

 

Guess you like

Origin www.cnblogs.com/1061321925wu/p/12275127.html
Recommended