Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
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 this fully revised second edition of the best-selling classic 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. You'll learn the basics of Python and explore Python's rich library of modules for performing specific tasks, like scraping data off websites, reading PDF and Word documents, and automating clicking and typing tasks.
The second edition of this international fan favorite includes a brand-new chapter on input validation, as well as tutorials on automating Gmail and Google Sheets, plus tips on automatically updating CSV files. You'll learn how to create programs that effortlessly perform useful 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 email responses and text notifications
• Fill out online forms
Step-by-step instructions walk you through each program, and updated 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, 2nd Edition.
Reviews (146)
Good Projects, but Not an Ideal Book for a True Beginner
This book is intended for beginners, and really breaks down python in a very approachable manner. Despite that being said, I wouldn't recommend this book to a beginner. In the preface, the author mentions that this book uses many bad habits (or at the very least frowned upon habits), which is true. Many of coding examples are inefficient (which, to the author's credit, he acknowledges), and while the code might run, it's not going to be pretty. The projects look worthwhile, and those alone would be what I'd argue makes the book worth it. Many novice developers (as well as intermediate & advanced) can shrug off the idiosyncrasies that are presented in this book, but a person brand new to coding would likely misunderstand the material, ultimately leading to bad habits that'll be harder to unlearn. For a true beginner, I'd recommend the Python Crash Course book by the same publisher (No Starch Press). The fundamentals are clearly presented, and easy to understand. The foundation developed will be stronger, and you'll be less likely to develop bad habits, since most of the material is presented in a manner consistent with the python community (PEP). For example, the way variables and input functions are utilized between the two books are drastically different. In this book, user input and assignment is handled as follows: print('What's your name?') name = input() This is inefficient, and somewhat confusing, given that the alternative (as presented in Python Crash Course) is easier. In Python Crash Course, the same outcome is presented as follows: name = input("What is your name? ") The print statement asking for the user's name is excessive. If I'm trying to automate the boring stuff, I'm trying to trim the fat - not eat it.
Really made for total beginners but can be used by seasoned developers as well
As this book makes very clear from the start, you don’t have to be a programmer to using this book. I’m a professional software engineer that just needed to learn some python automation for work and personal projects. This book helped me get there but I can see how this book really was tailored toward those who are not experienced in programming as it breaks down each section into consumable bits that would seem a bit tedious to someone like me but would be perfectly helpful to someone without programming experience. I was able to skim the first few chapters that teach the language as I’m already versed in programming and was able to glean pythons syntax style pretty quickly. It’s a simple yet elegant language especially compared to others that I use daily. The part about this book that got me all excited was the web scraping section. As a web developer, I deal with web pages a lot and it would be nice to have some scripts that would auto fill forms and interact with the web pages for me as I’m making code changes on the day to day. It would really make my job—even as a developer—super easy, and it has.
I am sure it will be a very good book
Add this book to my small collection of Python books, and I am sure it will be a very good book, because this is not my first book for the same author (Al Sweigart), I have one more else, +the author provides all his books for free reading in the net, +there is an Udemy video course for this book by him. Hoping good reading, practicing, time with this book.
Overall great book but not so great for actual programming beginners
While this is indeed a great book to get started with python projects I won’t say it’s a great book for total beginners. The author often uses coding concepts at the beginning of the book that are not explained until a later chapter leaving some beginners feeling overwhelmed with his programming methods. I am not a beginner though so understanding the basics was easy for me. The projects are really good for beginners too. Though I would recommend starting with Python Crash Course 2nd edition which goes through the fundamentals in greater detail and is more organized in its teaching approach (it also comes with projects at the end of the fundamental chapters). Overall good book just wished it was better organized for the “beginner”
Love this practical Python Automation Book
I just bought couple of weeks before. Almost half of the book I have finished. The author explains very well and You can actually use his example in python and test them. I recommend people who looking to work as a Cloud Architect / AWS architect etc.
Decent book, but the online examples don’t seem to work
The posted links to the examples at author(dot)com all seem to be pretty much dead, at , least as of the last time I checked several days ago. Big demerit for this. There is a lot of typing for the purpose of entering the code. It would be great, or it would be great if the web site was not DOA, to just be able to download some of those files. Or ship the book with a CD, which doesn’t seem to be a thing any more. Anyhow, it is OK so far, but there are issues with the execution.
Enjoyable read
Can’t say I enjoy reading technical book but I do it for learning. This one, is a gem. Funny, interesting relevant but not overwhelming. Good pace and got me started with Python better than googling.
Excellent introductory Python Programming Book
I am working through this book and haven't finished it yet. I am a long term programmer having programmed for pay in Fortran for multiple jobs. I have been programming for over 30 years and learning an object oriented language requires a shift in perspective. So, I need little in algorithm development but details on the language features is important and capabilities to do the things that were simple in other languages is important to know how to do it in Python. This book is very complementary to the book Think Python, IMHO. I am working in Data Science and Machine Learning in particular and found that my ability to program in Python was lacking. So far this book has done a very good job familiarizing me with how to do certain critical things in Python. For Data Science having a section on web site data scraping is very important. I could just look how to do this. Also the data structures are much richer and varied. In Fortran you created any complexity in data structure yourself. I highly recommend this book for both new programmers and advanced programmers who need or want to learn Python.
fantastic book
I have gone through some chapters of this book and it is just wonderful. this is a unique resource with its great ability to clearly explain the content to everyone even with no programming knowledge at all. thanks to the author for such great book.
Missing basic setup and proper organization steps
For those who have been coding know the importance of setup and organization. This book, I found, is lacking serious initial setup steps to get someone up and running smoothly with a dedicated directory. Demands you download files for use with the book but doesn't tell you EXPLICITLY where to place them or tell you some basic navigation commands to navigate directories and files. If the rest of the book is like the first chapter, this is going to be a waste of my time. Should be a BASIC book and assume readers do NOT know basics. Jury is still out whether I'd recommend this and may change my rating up if it improves....
Comments
Post a Comment