Python Script Automation Using Task Scheduler

There are a lot of boring tasks that you can automate using Python and Windows task scheduler.

You could extract data from Google Search Console and Google Analytics everyday and send yourself a weekly email report. You could log all your keywords everyday or automate your keywords research.

Before we can cover all that, we need to learn how to use Windows Task Scheduler.

Get Started Using Windows Task Scheduler

Search for “Task Scheduler”

Go to Actions > Create Task…

Give a name

Find the Python Path using where python in the command line

where python

Copy the Script to use in the action

Go to Actions > New

In Program/Script, add the path that you have copied from command line.

C:\yourpath\python.exe

or in my case

C:\Users\j-c.chouinard\AppData\Local\Continuum\anaconda3\python.exe

If you have a file located at this location.

C:\user\your_python_project_path\yourFile.py

In the "Add arguments (optional)” box, you will add the name of your python file.

yourFile.py

In the "Start in (optional)" box, you will add the location of your python file.

C:\user\your_python_project_path

Click “OK”.

Go to “Triggers” > New

Choose the repetition that you want.

Click “OK”

Once, you have set this up, your trigger is now active and your python script will run automatically every day.