The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.

What's New in the 3rd Edition of "Automate the Boring Stuff with Python"

Thu 09 November 2023    Al Sweigart

The third edition of "Automate the Boring Stuff with Python" is almost out! You can preorder it on the No Starch Press website (use code PREORDER for 25% off), where buying the print book will get you DRM-free ebooks in PDF, epub, and Kindle formats for free. The estimated release is August 2024.

A list of new things in the second edition is covered in this blog post.

The third edition is has new chapters, programming projects, and revised editing. The third party module coverage has been updated to the latest available version (including OpenPyXL). You can run pip install automate3 to install the latest version of all modules covered in the book that are compatible with the book's code examples.

Like the previous editions, the third edition is released under a Creative Commons license and will be free to read online.

Some of the new content includes:

  • Tips on how to use ChatGPT and other Large Language Model AIs to learn to code as well as common pitfalls to avoid.
  • Making your programs talk with text-to-speech libraries pyttsx3 and gTTS.
  • Speech recognition with OpenAI's Whisper library to create text transcriptions from audio and video files.
  • Doing OCR to extract text from images with PyTesseract.
  • Using the NAPS2 application to create PDFs from images with embedded OCRed text.
  • Recording video, images, and audio from your computer's webcam and microphone.
  • Making programs that can play videos and sound files in your program.
  • Downloading videos from YouTube and other video websites with yt-dlp.
  • Edit, merge, split, and convert video and audio files using ffmpeg.
  • Updated PDF operations using PyPDF and PdfMiner.
  • A complete introduction to SQLite and relational databases with Python's sqlite3 module.
  • How to compile Python scripts into executable programs with PyInstaller on Windows, macOS, and Linux.
  • Covering Playwright in addition to Selenium for controlling web browsers.
  • Sending push notifications to your phone with https://ntfy.sh
  • In addition to JSON and CVS formatted data, how to work with XML, TOML, and YAML files as well.
  • Creating graphs with matplotlib.
  • Copying and pasting images to the clipboard with pyperclipimg.
  • The Humre module for making regular expressions easier to use.

If you have questions about the third edition or its content, you can post them on the /r/inventwithpython subreddit.


Learn to program for free with my books for beginners:

Sign up for my "Automate the Boring Stuff with Python" online course with this discount link.

Email | Mastodon | Twitter | Twitch | YouTube | GitHub | Blog | Patreon | LinkedIn | Personal Site