March 2019
Beginner
490 pages
12h 40m
English
There are a number of text conventions used throughout this book.
CodeInText: 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: "You can find the following code in the urllib_exceptions.py file."
A block of code is set as follows:
# setup crawlerfrom scrapy.crawler import CrawlerProcesscrawler = CrawlerProcess(settings)# define the spider for the crawlercrawler.crawl(MySpider())# start scrapyprint("STARTING ENGINE")crawler.start()
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# setup crawlerfrom scrapy.crawler import CrawlerProcess ...Read now
Unlock full access