1

I wrote a little python Script that fetches data from some website using hard coded credentials ( i know its bad but not part of this question).

The website has new data every day and im gathering data from a whole week and parse it into a single .pdf.

I've already adjusted the script to always generate a pdf off last week by default. (no params needed)

Im kinda lazy and don't want to run the script every week by hand.

So is it possible to run the script at certain times, for example every monday at 10am?

2
  • 3
    Windows has the task scheduler for that. Commented Jun 25, 2018 at 15:18
  • This seems to be exactly what I was looking for. Commented Jun 26, 2018 at 6:19

2 Answers 2

2

Sure, just utilize Windows' task scheduler. There you can create new tasks to your delight and let it run commands to whatever times or intervalls you want. The task schedulers' GUI should be self-explanatory, but to be concrete on your example:

  1. Configure the run time (weekly, monday, 10am) under triggers
  2. Add a new action and give it your Python interpreter as the command and your script to be run as the argument
  3. Configure the rest according to your needs
Sign up to request clarification or add additional context in comments.

Comments

0

1. Create a batch file "run.bat" and write a set of commands in that file
2. Create a Task in Task Scheduler and give a proper name, and in the triggers section Choose "Weekly" and set it to run every Monday at your desired time.
3. choose program in the action and choose the batch file created in the above.
4. save

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.