November 2017
Intermediate to advanced
226 pages
5h 59m
English
We can go through some simple usage of Scrapy's interactive shell. The steps are as follows:
$ Scrapy shell http://books.toscrape.com/
After loading the Scrapy shell, it will open up an interface to interact with the response object as follows:

>>> response.xpath('//ol/li/article')
This will print the selector output. With this, we can create and test the extraction rules for spiders.
Read now
Unlock full access