Peter
Peter

Reputation: 593

Run python script every 5 minutes under Windows

I am having a simple python script scraping some data from html page and writing out results to a csv file. How can I automate the scraping, i.e. kick it off every five minutes under Windows.

Thanks Peter

Upvotes: 3

Views: 15064

Answers (2)

geekpradd
geekpradd

Reputation: 418

Look into this link: http://blogs.esri.com/esri/arcgis/2013/07/30/scheduling-a-scrip/

You'll need to change some settings in Windows Task Scheduler to run the script every five minutes, otherwise the above tutorial works nicely.

Upvotes: 5

Javier E V Perry
Javier E V Perry

Reputation: 48

If you are using Windows i would suggest using Windows Task Scheduler, it's quite simple thanks to the UI and from there Trigger your Python code.

For a server environment like Linux you could set up a Cron task.

Upvotes: 3

Related Questions