Skip to Content
Automate the Boring Stuff with Python, 2nd Edition
book

Automate the Boring Stuff with Python, 2nd Edition

by Al Sweigart
November 2019
Beginner to intermediate
592 pages
14h 43m
English
No Starch Press
Content preview from Automate the Boring Stuff with Python, 2nd Edition

17KEEPING TIME, SCHEDULING TASKS, AND LAUNCHING PROGRAMS

Image

Running programs while you’re sitting at your computer is fine, but it’s also useful to have programs run without your direct supervision. Your computer’s clock can schedule programs to run code at some specified time and date or at regular intervals. For example, your program could scrape a website every hour to check for changes or do a CPU-intensive task at 4 AM while you sleep. Python’s time and datetime modules provide these functions.

You can also write programs that launch other programs on a schedule by using the subprocess and threading modules. Often, the fastest way to program ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automate the Boring Stuff with Python

Automate the Boring Stuff with Python

Al Sweigart

Publisher Resources

ISBN: 9781098122584Errata Page