by Al Sweigart
beginning of string matches, Character Classes
case sensitivity, Case-Insensitive Matching
character classes, The findall() Method
creating Regex objects, Finding Patterns of Text Without Regular Expressions
defined, Pattern Matching with Regular Expressions
end of string matches, Character Classes
extracting phone numbers and emails addresses, Combining re.IGNORECASE, re.DOTALL, and re.VERBOSE
findall() method, Greedy and Nongreedy Matching
finding text without, Pattern Matching with Regular Expressions
greedy matching, Matching One or More with the Plus
grouping, Review of Regular Expression Matching, Grouping with Parentheses, Matching Multiple Groups with the Pipe, Optional Matching with the Question Mark, Optional Matching with the Question Mark, Matching One or More with the Plus
matching specific repetitions, Matching One or More with the Plus
one or more matches, Optional Matching with the Question Mark
optional matching, Matching Multiple Groups with the Pipe
using parentheses, Review of Regular Expression Matching
using pipe character in, Grouping with Parentheses
zero or more matches, Optional Matching with the Question Mark
HTML and, Opening Your Browser’s Developer Tools
matching with, Creating Regex Objects
multiple arguments for compile() function, Managing Complex Regexes
nongreedy matching, Greedy and Nongreedy Matching
patterns for, Finding Patterns of Text Without Regular Expressions
spreading over multiple lines, Managing Complex Regexes
substituting strings using, Case-Insensitive Matching
symbol reference, Matching Newlines with the Dot Character
wildcard character, The Caret and Dollar Sign Characters
relative paths, The Current Working Directory
relpath() function, The os.path Module, Handling Absolute and Relative Paths
remainder/modulus (%) operator, Entering Expressions into the Interactive Shell, The Multiple Assignment Trick
remove() method, Adding Values to Lists with the append() and insert() Methods
remove_sheet() method, Creating and Removing Sheets
renaming files/folders, Copying Files and Folders, Creating and Adding to ZIP Files, Creating and Adding to ZIP Files, Creating and Adding to ZIP Files, Step 1: Create a Regex for American-Style Dates, Step 3: Form the New Filename and Rename the Files
date styles, Creating and Adding to ZIP Files, Creating and Adding to ZIP Files, Creating and Adding to ZIP Files, Step 1: Create a Regex for American-Style Dates, Step 3: Form the New Filename and Rename the Files
creating regex for dates, Creating and Adding to ZIP Files
identifying dates in filenames, Step 1: Create a Regex for American-Style Dates
overview, Creating and Adding to ZIP Files
renaming files, Step 3: Form the New Filename and Rename the Files
replication, String Concatenation and Replication, Getting a List’s Length with len()
of lists, Getting a List’s Length with len()
string, String Concatenation and Replication
requests module, Downloading Files from the Web with the requests Module, Saving Downloaded Files to the Hard Drive
downloading files, Saving Downloaded Files to the Hard Drive
downloading pages, Downloading Files from the Web with the requests Module
resolution of computer screen, Controlling Mouse Movement
Response objects, Downloading Files from the Web with the requests Module
return values, function, def Statements with Parameters
reverse keyword, Removing Values from Lists with remove()
RGBA values, Computer Image Fundamentals
RGB color model, Colors and RGBA Values
rightClick() function, Clicking the Mouse, Review of the PyAutoGUI Functions
rjust() method, The join() and split() String Methods, Step 3: Get and Print the Mouse Coordinates
rmdir() function, Moving and Renaming Files and Folders
rmtree() function, Moving and Renaming Files and Folders
rotateClockwise() method, Copying Pages
rotateCounterClockwise() method, Copying Pages
rotating images, Rotating and Flipping Images
rounding numbers, The time.sleep() Function
rows, in Excel spreadsheets, Converting Between Column Letters and Numbers, Formulas
setting height and width of, Formulas
slicing Worksheet objects to get Cell objects in, Converting Between Column Letters and Numbers
rstrip() method, Justifying Text with rjust(), ljust(), and center()
rtl attribute, Run Attributes
Run objects, Styling Paragraph and Run Objects, Run Attributes
running programs, Running Programs, Running Programs, Shebang Line, Running Python Programs on OS X and Linux, Running Python Programs on OS X and Linux
on Linux, Running Python Programs on OS X and Linux
on OS X, Running Python Programs on OS X and Linux
overview, Running Programs
on Windows, Shebang Line
shebang line, Running Programs
S
S character class, The findall() Method
s character class, The findall() Method
%S directive, Pausing Until a Specific Date
Safari, developer tools in, Opening Your Browser’s Developer Tools
save() method, Manipulating Images with Pillow
scope, Local and Global Scope, Local and Global Variables with the Same Name
global, Local and Global Variables with the Same Name
local, Local and Global Scope
screenshot() function, Scrolling the Mouse, Review of the PyAutoGUI Functions
screenshots, Scrolling the Mouse, Analyzing the Screenshot
analyzing, Analyzing the Screenshot
getting, Scrolling the Mouse
scripts, Copying and Pasting Strings with the pyperclip Module, Task Scheduler, launchd, and cron
running from Python program, Task Scheduler, launchd, and cron
running outside of IDLE, Copying and Pasting Strings with the pyperclip Module
scroll() function, Dragging the Mouse, Scrolling the Mouse, Review of the PyAutoGUI Functions
scrolling mouse, Dragging the Mouse
searching, Getting Data from an Element’s Attributes, Getting Data from an Element’s Attributes, Step 1: Get the Command Line Arguments and Request the Search Page, Step 1: Get the Command Line Arguments and Request the Search Page, Step 1: Get the Command Line Arguments and Request the Search Page, Step 2: Find All the Results, Connecting to an IMAP Server
email, Connecting to an IMAP Server
the Web, Getting Data from an Element’s Attributes, Getting Data from an Element’s Attributes, Step 1: Get the Command Line Arguments and Request the Search Page, Step 1: Get the Command Line Arguments and Request the Search Page, Step 1: Get the Command Line Arguments and Request the Search Page, Step 2: Find All the Results
finding results, Step 1: Get the Command Line Arguments and Request the Search Page
getting command line arguments, Step 1: Get the Command Line Arguments and Request the Search Page
opening web browser for results, Step 2: Find All the Results
overview, Getting Data from an Element’s Attributes
requesting search page, Step 1: Get the Command Line Arguments and Request the Search Page
search() method, Creating Regex Objects
SEEN search key, Performing the Search
see program, Task Scheduler, launchd, and cron
select_folder() method, Selecting a Folder
select lists, Step 3: Start Typing Data
select() method, bs4 module, Creating a BeautifulSoup Object from HTML
s
electors, CSS, Creating a BeautifulSoup Object from HTML, Finding Elements on the Page
selenium module, Step 4: Save the Image and Find the Previous Comic, Step 4: Save the Image and Find the Previous Comic, Starting a Selenium-Controlled Browser, Finding Elements on the Page, Finding Elements on the Page, Filling Out and Submitting Forms, Sending Special Keys
clicking buttons, Sending Special Keys
finding elements, Starting a Selenium-Controlled Browser
following links, Finding Elements on the Page
installing, Step 4: Save the Image and Find the Previous Comic
sending special keystrokes, Filling Out and Submitting Forms
submitting forms, Finding Elements on the Page
using Firefox with, Step 4: Save the Image and Find the Previous Comic
send2trash module, Permanently Deleting Files and Folders
sending reminder emails, Disconnecting from the IMAP Server, Disconnecting from the IMAP Server, Disconnecting from the IMAP Server, Step 2: Find All Unpaid Members, Step 2: Find All Unpaid Members
finding unpaid members, Step 2: Find All Unpaid Members
opening Excel file, Disconnecting from the IMAP Server
overview, Disconnecting from the IMAP Server
sending emails, Step 2: Find All Unpaid Members
send_keys() method, Finding Elements on the Page
sendmail() method, Logging in to the SMTP Server, Step 3: Send Customized Email Reminders
sequence numbers, Fetching an Email and Marking It As Read
sequences, Using for Loops with Lists
setdefault() method, The setdefault() Method
shadow attribute, Run Attributes
shebang line, Running Programs
shelve module, Writing to Files
Short Message Service (SMS), Sending Text Messages with Twilio, Sending Text Messages
sending messages, Sending Text Messages
Twilio service, Sending Text Messages with Twilio
shutil module, Copying Files and Folders, Copying Files and Folders, Moving and Renaming Files and Folders
deleting files/folders, Moving and Renaming Files and Folders
moving files/folders, Copying Files and Folders
renaming files/folders, Copying Files and Folders
SID (string ID), Sending Text Messages
Simple Mail Transfer Protocol, Connecting to an SMTP Server (see SMTP (Simple Mail Transfer Protocol))
SINCE search key, Selecting a Folder
single quote ('), String Literals
single-threaded programs, Multithreading
size() function, Controlling Mouse Movement
sleep() function, The time.time() Function, Pausing Until a Specific Date, Review of Python’s Time Functions, Task Scheduler, launchd, and cron
slices, Negative Indexes, Multiline Strings with Triple Quotes
getting sublists with, Negative Indexes
for strings, Multiline Strings with Triple Quotes
small_caps attribute, Run Attributes
SMALLER search key, Performing the Search
SMS (Short Message Service), Sending Text Messages with Twilio, Sending Text Messages
sending messages, Sending Text Messages
Twilio service, Sending Text Messages with Twilio
SMTP (Simple Mail Transfer Protocol), SMTP, Connecting to an SMTP Server, Connecting to an SMTP Server, Connecting to an SMTP Server, Connecting to an SMTP Server, Logging in to the SMTP Server, Disconnecting from the SMTP Server
connecting to server, Connecting to an SMTP Server
defined, SMTP
disconnecting from server, Disconnecting from the SMTP Server
logging into server, Connecting to an SMTP Server
sending “hello” message, Connecting to an SMTP Server
sending message, Logging in to the SMTP Server
TLS encryption, Connecting to an SMTP Server
SMTP objects, Connecting to an SMTP Server
sort() method, Removing Values from Lists with remove()
sound files, playing, Project: Simple Countdown Program
source code, defined, Conventions
split() method, The isX String Methods, Handling Absolute and Relative Paths, Working with CSV Files and JSON Data
spreadsheets, Working with Excel Spreadsheets (see Excel spreadsheets)
square brackets [], The List Data Type
Stack Overflow, How to Find Help
standard library, Importing Modules
star (*), Optional Matching with the Question Mark, The Wildcard Character, The Wildcard Character, Matching Newlines with the Dot Character
using with wildcard character, The Wildcard Character
zero or more matches with, Optional Matching with the Question Mark
start() method, Multithreading, Passing Arguments to the Thread’s Target Function, Step 1: Modify the Program to Use a Function
start program, Task Scheduler, launchd, and cron
startswith() method, The isX String Methods
starttls() method, Connecting to an SMTP Server, Step 3: Send Customized Email Reminders
step argument, An Equivalent while Loop
stopwatch project, The time.sleep() Function, The time.sleep() Function, Project: Super Stopwatch, Project: Super Stopwatch
overview, The time.sleep() Function
set up, Project: Super Stopwatch
tracking lap times, Project: Super Stopwatch
strftime() function, Pausing Until a Specific Date, Review of Python’s Time Functions
str() function, The len() Function, The Tuple Data Type, Step 3: Get and Print the Mouse Coordinates
strike attribute, Run Attributes
string ID (SID), Sending Text Messages
strings, The Integer, Floating-Point, and String Data Types, The Integer, Floating-Point, and String Data Types, String Concatenation and Replication, List-like Types: Strings and Tuples, String Literals, String Literals, String Literals, Escape Characters, Escape Characters, Multiline Strings with Triple Quotes, Multiline Strings with Triple Quotes, Indexing and Slicing Strings, Indexing and Slicing Strings, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The upper(), lower(), isupper(), and islower() String Methods, The isX String Methods, The isX String Methods, The isX String Methods, The isX String Methods, The isX String Methods, The isX String Methods, The join() and split() String Methods, The join() and split() String Methods, The join() and split() String Methods, Justifying Text with rjust(), ljust(), and center(), Justifying Text with rjust(), ljust(), and center(), Justifying Text with rjust(), ljust(), and center(), Removing Whitespace with strip(), rstrip(), and lstrip(), Case-Insensitive Matching, Raising Exceptions, PDF Documents, Pausing Until a Specific Date, Converting datetime Objects into Strings
center() method, The join() and split() String Methods
concatenation, The Integer, Floating-Point, and String Data Types
converting datetime objects to, Pausing Until a Specific Date
converting to datetime objects, Converting datetime Objects into Strings
copying and pasting, Removing Whitespace with strip(), rstrip(), and lstrip()
double quotes for, String Literals
endswith() method, The isX String Methods
escape characters, String Literals
extracting PDF text as, PDF Documents
getting traceback as, Raising Exceptions
indexes for, Multiline Strings with Triple Quotes
in operator, Indexing and Slicing Strings
isalnum() method, The upper(), lower(), isupper(), and islower() String Methods
isalpha() method, The upper(), lower(), isupper(), and i
slower() String Methods
isdecimal() method, The upper(), lower(), isupper(), and islower() String Methods
islower() method, The upper(), lower(), isupper(), and islower() String Methods
isspace() method, The isX String Methods
istitle() method, The isX String Methods
isupper() method, The upper(), lower(), isupper(), and islower() String Methods
join() method, The isX String Methods
literals, String Literals
ljust() method, The join() and split() String Methods
lower() method, The upper(), lower(), isupper(), and islower() String Methods
lstrip() method, Justifying Text with rjust(), ljust(), and center()
multiline, Escape Characters
mutable vs. immutable data types, List-like Types: Strings and Tuples
not in operator, Indexing and Slicing Strings
overview, The Integer, Floating-Point, and String Data Types
raw, Escape Characters
replication of, String Concatenation and Replication
rjust() method, The join() and split() String Methods
rstrip() method, Justifying Text with rjust(), ljust(), and center()