
Automate the Boring Stuff with Python
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:
Automate the Boring Stuff with Python
Chapter 1 – Python Basics; Chapter 2 – Flow Control; Chapter 3 – Functions; Chapter 4 – Lists; Chapter 5 – Dictionaries and Structuring Data; Chapter 6 – Manipulating Strings; Chapter 7 – Pattern Matching with Regular Expressions; Chapter 8 – Input Validation; Chapter 9 – Reading and Writing Files; Chapter 10 – Organizing Files
Working with PDF and word Documents - Automate the Boring Stuff
Creating a PdfFileWriter object creates only a value that represents a PDF document in Python. It doesn’t create the actual PDF file. For that, you must call the PdfFileWriter’s write() method. The write() method takes a regular File object that has been opened in write-binary mode.
Automate the Boring Stuff with Python
Fortunately, there are Python modules that make it easy for you to interact with PDFs and Word documents. This chapter will cover two such modules: PyPDF2 and Python-Docx. PDF Documents. PDF stands for Portable Document Format and uses the .pdf file extension. Although PDFs support many features, this chapter will focus on the two things you ...
Automate the Boring Stuff with Python
In this chapter, you will learn about several modules that make it easy to scrape web pages in Python. webbrowser Comes with Python and opens a browser to a specific page. requests Downloads files and web pages from the internet.
Automate the Boring Stuff with Python
The first part of this book covers basic Python programming concepts, and the second part covers various tasks you can have your computer automate. Each chapter in the second part has project programs for you to study.
PYTHON BASICS - Automate the Boring Stuff
In Python, 2 + 2 is called an expression, which is the most basic kind of programming instruction in the language. Expressions consist of values (such as 2 ) and operators (such as + ), and they can always evaluate (that is, reduce) down to a single value.
Automate the Boring Stuff with Python
Python’s automatic garbage collector deletes any values not being referred to by any variables to free up memory. You don’t need to worry about how the garbage collector works, which is a good thing: manual memory management in other programming languages is a …
Automate the Boring Stuff with Python
As you begin working with files, you may find it helpful to be able to quickly see what the extension (. txt, . pdf, . jpg, and so on) of a file is. With OS X and Linux, your file browser most likely shows extensions automatically.
Automate the Boring Stuff with Python
This tutorial explains how to create a GUI automation program in Python that plays a Flash game called Sushi Go Round. The game involves clicking the correct ingredient buttons to fill customers’ sushi orders.