This video introduces Python's schedule module. Explore the different scheduling options it provides, and then use this module for scheduling your data collection, saving as HTML, and emailing the process.
- [Instructor] Next, we will be scheduling our tasks.…In order to schedule our tasks,…we will be using the schedule module.…This is a very nice, lightweight module,…and, of course, we have to pip install it first.…So, when we go to PyPi, this is schedule.…And, it says Python job scheduling for humans.…Well, that sounds funny, but it…actually is very user friendly.…
The syntax is very nice.…So, we can see here: pip install schedule,…and import schedule, and we define a job up here,…and we call the job, and there are…different ways to schedule it.…So, we'll do schedule every one to 10 minutes, do the job.…Schedule every hour, do the job.…Schedule at a certain day, every day at a certain time,…this is the military form of 24 hours,…so this is 10:30 in the morning, a.m.…
Schedule on a specific day, or schedule…on a specific day at a specific time, so this is 1:15 p.m.…So, schedule every hour, do the job.…And so, this is the schedule we are setting up.…One, two, three, four, five actually.…And, in order for this to run,…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service