How to Run a Python Program with Windows Task Scheduler

preview_player
Показать описание
In this video, I'll show you how to run a python program on a schedule with Windows Task Scheduler. I have a python file (.py) that scrapes news articles from local news websites and creates a JSON. I then use the JSON to run a python flask website on my local machine. The webscraping can take several minutes, so I'm using task scheduler to run the program every morning at 3 am before I wake up. It's super easy to do.

#taskscheduler #runpythonprograms
Рекомендации по теме
Комментарии
Автор

My friend, thank you very much, you have explained everything in detail, you really deserve not one like but thousands of likes.
Congratulations!

MuhammetMustafa-nrvj
Автор

I don't know why my task get's scheduled but it's not running

zrrrqrj
Автор

Thank you I was passing my script in the program script section and nothing else it makes sense now I’ll try again in a bit.

joshuahorton
Автор

Hi, Could it be a ipynb file instead?

congly
Автор

I had a doubt. I have an automation script using python. While I have set a time to run the script during that time I still cannot work on my other tasks in the system right? I have to wait for it to run completely

My script will automate a desktop app and my goal is that it should run parallely while I do my other work on the system. Is there a way to do this?
Thanks

pythonenthusiast
Автор

you have to refresh it once you run the program yourself

mashailfurqan