2ND EDITION
LEARN PYTHON.
GET STUFF DONE.
OVER 200,000
COPIES SOLD
2ND EDITION
AUTOMATE
THE BORING STUFF
AU TOM AT E T HE BOR ING
WITH PYTHON
STUFF WITH PY THON
If you’ve ever spent hours renaming files or updating • Search the web and download online content
hundreds of spreadsheet cells, you know how tedious P R A C T I C A L P R O G R A M M I N G
• Split, merge, watermark, and encrypt PDFs
tasks like these can be. But what if you could have your F O R T O T A L B E G I N N E R S
computer do them for you? • Send email responses and text notifications
In this fully revised second edition of Automate the • Fill out online forms
Boring Stuff with Python, you’ll learn how to use Python AL SWEIGART
Step-by-step instructions walk you through each program,
to write programs that do in minutes what would take
and updated practice projects at the end of each chapter
you hours to do by hand—no prior programming experi-
challenge you to improve those programs and use your
ence required. You’ll learn the basics of Python and
newfound skills to automate similar tasks.
explore Python’s rich library of modules for performing
specific tasks, like scraping data off websites, reading Don’t spend your time doing work a well-trained monkey
PDF and Word documents, and automating clicking and could do. Even if you’ve never written a line of code,
typing tasks. you can make your computer do the grunt work. Learn
how in Automate the Boring Stuff with Python.
The second edition of this international best-seller
includes a brand-new chapter on input validation, ABOUT THE AUTHOR
as well as tutorials on automating Gmail and Google
Al Sweigart is a professional software developer who
Sheets, and tips on automatically updating CSV files.
teaches programming to kids and adults. Sweigart
You’ll learn how to create programs that effortlessly
has written several bestselling programming books
perform useful feats of automation to:
for beginners, including Invent Your Own Computer
• Search for text in a file or across multiple files Games with Python, Cracking Codes with Python, and
Coding with Minecraft (all from No Starch Press).
• Create, update, move, and rename files and folders
COVERS PYTHON 3.X
T H E F I N E ST I N G E E K E N T E RTA I N M E N T ™ SWEIGART
w w w.nostarch.com
$39.95 ($53.95 CDN)
PYTHON
PROGRAMMING LANGUAGES/
SHELVE IN: