Book description
Automate the Boring Stuff with Python teaches simple programming skills to automate everyday computer tasks.
Publisher resources
Table of contents
- Automate the Boring Stuff with Python: Practical Programming for Total Beginners
- Dedication
- About the Author
- About the Tech Reviewer
- Acknowledgments
- Introduction
-
I. Python Programming Basics
- 1. Python Basics
- 2. Flow Control
- 3. Functions
- 4. Lists
- 5. Dictionaries and Structuring Data
-
6. Manipulating Strings
- Working with Strings
-
Useful String Methods
- The upper(), lower(), isupper(), and islower() String Methods
- The isX String Methods
- The startswith() and endswith() String Methods
- The join() and split() String Methods
- Justifying Text with rjust(), ljust(), and center()
- Removing Whitespace with strip(), rstrip(), and lstrip()
- Copying and Pasting Strings with the pyperclip Module
- Project: Password Locker
- Project: Adding Bullets to Wiki Markup
- Summary
- Practice Questions
- Practice Project
-
II. Automating Tasks
-
7. Pattern Matching with Regular Expressions
- Finding Patterns of Text Without Regular Expressions
- Finding Patterns of Text with Regular Expressions
- More Pattern Matching with Regular Expressions
- Greedy and Nongreedy Matching
- The findall() Method
- Character Classes
- Making Your Own Character Classes
- The Caret and Dollar Sign Characters
- The Wildcard Character
- Review of Regex Symbols
- Case-Insensitive Matching
- Substituting Strings with the sub() Method
- Managing Complex Regexes
- Combining re.IGNORECASE, re.DOTALL, and re.VERBOSE
- Project: Phone Number and Email Address Extractor
- Summary
- Practice Questions
- Practice Projects
- 8. Reading and Writing Files
- 9. Organizing Files
- 10. Debugging
-
11. Web Scraping
- Project: mapit.py with the webbrowser Module
- Downloading Files from the Web with the requests Module
- Saving Downloaded Files to the Hard Drive
- HTML
- Parsing HTML with the BeautifulSoup Module
- Project: “I’m Feeling Lucky” Google Search
- Project: Downloading All XKCD Comics
- Controlling the Browser with the selenium Module
- Summary
- Practice Questions
- Practice Projects
-
12. Working with Excel Spreadsheets
- Excel Documents
- Installing the openpyxl Module
- Reading Excel Documents
- Project: Reading Data from a Spreadsheet
- Writing Excel Documents
- Project: Updating a Spreadsheet
- Setting the Font Style of Cells
- Font Objects
- Formulas
- Adjusting Rows and Columns
- Charts
- Summary
- Practice Questions
- Practice Projects
- 13. Working with PDF and word Documents
- 14. Working with CSV Files and JSON Data
- 15. Keeping Time, Scheduling Tasks, and Launching Programs
-
16. Sending Email and Text Messages
- SMTP
- Sending Email
- IMAP
- Retrieving and Deleting Emails with IMAP
- Project: Sending Member Dues Reminder Emails
- Sending Text Messages with Twilio
- Project: “Just Text Me” Module
- Summary
- Practice Questions
- Practice Projects
- 17. Manipulating Images
-
18. Controlling the Keyboard and Mouse with GUI Automation
- Installing the pyautogui Module
- Staying on Track
- Controlling Mouse Movement
- Project: “Where Is the Mouse Right Now?”
- Controlling Mouse Interaction
- Working with the Screen
- Project: Extending the mouseNow Program
- Image Recognition
- Controlling the Keyboard
- Review of the PyAutoGUI Functions
- Project: Automatic Form Filler
- Summary
- Practice Questions
- Practice Projects
-
7. Pattern Matching with Regular Expressions
- A. Installing Third-Party Modules
- B. Running Programs
- C. Answers to the Practice Questions
- D. Resources
- Index
- Copyright
Product information
- Title: Automate the Boring Stuff with Python
- Author(s):
- Release date: April 2015
- Publisher(s): No Starch Press
- ISBN: 9781593275990
You might also like
book
Python for Excel
While Excel remains ubiquitous in the business world, recent Microsoft feedback forums are full of requests …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Python Workout
Python Workout presents 50 exercises that focus on key Python 3 features. In it, expert Python …
book
Fluent Python, 2nd Edition
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets …