Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Here, we have expressed our interest in only finding the information from the content
attribute with the <meta>
tag, which has the name
attribute with the keywords
and description
values, respectively.”
A block of code is set as follows:
source.find(‘a:contains(“Web”)’) # [<a.menuitm>, <a>, <a>, <a>, <a>] source.find(‘a:contains(“Web”):last’).text() # ‘Web Scraper’ source.find(‘a:contains(“Web”):last’).attr(‘href’) # ‘#’
Any command-line input or output is written as follows:
(secondEd) C:\HOWScraping2E> pip install jupyterlab
Outputs and comments inside blocks of code look as follows:
# [<a.menuitm>, <a>, <a>, <a>, <a>] # ‘Web Scraper’ # ‘#’
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “In addition, we will create separate files for author and quotes.”
Tips or important notes
Appear like this.