Automate the Boring Stuff with Python: Practical Programming for Total Beginners 1st Edition
| Al Sweigart (Author) Find all the books, read about the author, and more. See search results for this author |
Use the Amazon App to scan ISBNs and compare prices.
There is a newer edition of this item:
If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you?
In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation to:
- Search for text in a file or across multiple files
- Create, update, move, and rename files and folders
- Search the Web and download online content
- Update and format data in Excel spreadsheets of any size
- Split, merge, watermark, and encrypt PDFs
- Send reminder emails and text notifications
- Fill out online forms
Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks.
Don't spend your time doing work a well-trained monkey could do. Even if you've never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python.
Frequently bought together

- +
- +
Customers who viewed this item also viewed
From the Publisher
|
|
|
|
|---|---|---|
'A Lot of Fun'“I’m having a lot of fun breaking things and then putting them back together, and just remembering the joy of turning a set of instructions into something useful and fun, like I did when I was a kid.” —Wil Wheaton, Actor, Writer, and Geek Icon |
'Highly Recommended'“Do you need Automate the Boring Stuff with Python? Yes, if you want to enhance your workflow by using automation, this is an excellent place to start. Highly recommended.” —Network World |
'A Stellar Resource'"A stellar resource for office workers, academics, and administrators." —Mashable |
About the Author
Al Sweigart is a software developer and tech book author. Python is his favorite programming language, and he is the developer of several open source modules for it. His other books are freely available under a Creative Commons license on his website. His cat now weighs 11 pounds.
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|
| Python for Kids by Jason Briggs | Python Crash Course 2nd edition by Eric Matthes | Automate the Boring Stuff 2nd edition by Al Sweigart | Python Flash Cards by Eric Matthes | Impractical Python Projects by Lee Vaughan | Serious Python by Julien Danjou | |
| User experience level | Beginner | Beginner | Beginner | Beginner to Intermediate | Intermediate | Intermediate |
| For readers who want | A gentle, kid-friendly introduction to Python | A fast-paced, thorough introduction to Python | A practical guide to using Python for automating tedious tasks | A quick and easy way to review Python fundamentals, vocabulary, syntax and more | Fun, entertaining projects to take your Python skills to the next level | Expert, practical advice and tutorials to perfect your professional Python skills |
| Compatible with Python version | Python 3 | Python 3 | Python 3 | Python 3 | Python 3 | Python 2 & 3 |
| Special features | Kid-friendly, full-color code and illustrations | Covers Django, matplotlib and plotly, and pygame | Covers working with files en masse, automating emails and texts, scraping the web, and more | Flash card format; includes exercises and challenges to test and hone your skills | Covers modules like pygame, Pylint, pydocstyle, tkinter, python-docx, matplotlib, and pillow | Covers powerful techniques like using generators, handling time zones, and applying functional programming |
| Page count | 344 pages | 544 pages | 592 pages | 101 cards | 424 pages | 240 pages |
About the Publisher
No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.
Editorial Reviews
Review
"Do you need Automate the Boring Stuff with Python? Yes, if you want to enhance your workflow by using automation, this is an excellent place to start. Highly recommended."—Network World
About the Author
Al Sweigart is a software developer and teaches programming to kids and adults. He has written several Python books for beginners, including Hacking Secret Ciphers with Python, Invent Your Own Computer Games with Python, and Making Games with Python & Pygame.
I'd like to read this book on Kindle
Don't have a Kindle? Compra tu Kindle aquí, or download a FREE Kindle Reading App.
Product details
- Publisher : No Starch Press; 1st edition (May 1, 2015)
- Language : English
- Paperback : 504 pages
- ISBN-10 : 1593275994
- ISBN-13 : 978-1593275990
- Item Weight : 2.14 pounds
- Dimensions : 7 x 1.19 x 9.25 inches
- Best Sellers Rank: #101,138 in Books (See Top 100 in Books)
- #139 in Python Programming
- #154 in Introductory & Beginning Programming
- #178 in Microsoft Programming (Books)
- Customer Reviews:
About the author

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviewed in the United States on July 7, 2019
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
*page 188 (with usage of "%s")
*page 126 (usage of ".pyw" extension, where author says to see Appendix for more details, but there are none)
*page 193 (usage of "str(list())", but there is not (yet) an explanation about that type of use of str())
I'm on page 209 now. The few aforementioned issues tripped me up enough to cause this review to be written. If it were not for those errors, the first 209 pages would be 5-stars.
PROS:
* the explanation of regular expressions is enlightening, clear and simple. Better intro than several other books.
*the practice questions are excellent, working through each them is rewarding to one's understanding.
*the writing is clear and simple, direct, no typos, and flows well through each topic and chapter.
Reviewed in the United States on July 7, 2019
Ignoring outdated modules in the examples, the author does a great job of explaining why python is important and gives so many ideas on how computing tasks can be greatly simplified, by accessing API's from software (like MS Office) that we use all of the time. This information provides an excellent foundation into python and the automation of tasks that make python such a powerhouse.
Overall, this is good book; the foundation is great, while the examples are below average due to the outdated functions used in the examples.
There are some issues I have with the book's methods, but I am giving it 5 stars because the author explicitly mentions these defects as an intentional part of the book, and the methods still really helped me get to the "meat" of programing basics.
The book takes you through the basics of programming with python, a bit of history about the language, and takes the user through some of the most common functions. Sweigart explains the definitions of basic concepts, such as strings, integers, functions...etc...
There are lots of review sessions and the projects at the end of the chapters really help you work out the syntax on your own.
As the book progresses into more and more complex usages of the language all the while giving the user great examples of potential uses for programming for general office use, or as time saving techniques.
The Pros:
-easy to read, to the point but with enough description to teach you the concepts.
-great introduction to programming in general, as well as the language
-a supplemental website and reddit forum that can really help users with some of the concepts of the book.
The Cons:
-the style leaves out some common programming rules I discovered with supplemental work (he openly admits this is done to keep to the basics of syntax and language usage, it is an effective way to teach newbies).
-some things should have had a little more attention. I feel the role of functions is so big, there should have been a little more emphasis on the scope of the use of the functions
I would highly recommend this book if you:
A. are looking to do programming but do not know where to start
and
B. are comfortable with computers (you don't have to know the command line or be able ot build one from the ground up, but know how to use basic functions)
C. Don't mind the stripped down explanation of things, sticking to concepts rather than form, or the "do's and don'ts" of proper usage
The fruits of your hard work: the able to scrape the web, automate things, and make your life easier!
I learned programming from it, knowing nothing about computers, and after a few months wrote a program which saves the work-equivalent of several tens of thousands of dollars every year.
Anyone who wants to overcome a subtle fear of computers and programming would do well to pick up this book, do all the exercises, and write some scripts to make their lives easier. They may just find at the end of it that their fear of computers has turned into fascination.
Top reviews from other countries
Learning a lot from it.
Using a udemy course and this is my reference for when the course doesn’t communicate what I need to know.
Fun to read and easy to work through.
I’m recovering from a head injury that stole my programming so this is more fun the second time around.
More python to play with makes lots of female programmers happier.












