149
476
Index
scroll()
function, 422, 423, 430
scrolling mouse, 422–423
searching
email, 368–371
the Web, 248–251
finding results, 249–250
getting command line
arguments, 249
opening web browser for
results, 250–251
overview, 248
requesting search page, 249
search()
method, 151
SEEN
search key, 370
see
program, 355
select_folder()
method, 369
select lists, 435–436
select()
method,
bs4
module, 246–247
selectors, CSS, 246–247, 258
selenium
module
clicking buttons, 261
finding elements, 257–259
following links, 259
installing, 256
sending special keystrokes, 260–261
submitting forms, 259–260
using Firefox with, 256–257
send2trash
module, 201–202
sending reminder emails, 376–379
finding unpaid members, 378
opening Excel file, 376–377
overview, 376
sending emails, 378–379
send_keys()
method, 259–260
sendmail()
method, 365, 379
sequence numbers, 373
sequences, 86
setdefault()
method, 110–111
shadow
attribute, 311
shebang line, 443–444
shelve
module, 184–185
Short Message Service (SMS)
sending messages, 381–382
Twilio service, 380
shutil
module
deleting files/folders, 200–201
moving files/folders, 199–200
renaming files/folders, 199–200
SID (string ID), 382
Simple Mail Transfer Protocol. See
SMTP (Simple Mail
Transfer Protocol)
SINCE
search key, 369
single quote (
'
), 124
single-threaded programs, 347
size()
function, 416
sleep()
function, 337–338, 344, 346, 355
slices
getting sublists with, 82–83
for strings, 126–127
small_caps
attribute, 311
SMALLER
search key, 370
SMS (Short Message Service)
sending messages, 381–382
Twilio service, 380
SMTP (Simple Mail Transfer Protocol)
connecting to server, 363–364
defined, 362
disconnecting from server, 366
logging into server, 364–365
sending “hello” message, 364
sending message, 365
TLS encryption, 364
SMTP
objects, 363–364
sort()
method, 91–92
sound files, playing, 357–358
source code, defined, 3
split()
method, 131–133, 178, 320
spreadsheets. See Excel spreadsheets
square brackets
[]
, 80
Stack Overflow, 9
standard library, 57
star (
*
), 161, 162
using with wildcard character, 161
zero or more matches with, 155
start()
method, 348, 349, 351
start
program, 355
startswith()
method, 131
starttls()
method, 364, 379
step
argument, 56
stopwatch project, 338–340
overview, 338–339
set up, 339
tracking lap times, 339–340
strftime()
function, 344–345, 346
str()
function, 25–28, 97, 419
strike
attribute, 311
string ID (SID), 382
strings
center()
method, 133–134
concatenation, 17–18
converting
datetime
objects to,
344–345
converting to
datetime
objects, 345