通过python scrapy shell 获取对应的网页元素值

首先我们用的是python3.1 scrapy框架 虚拟环境和上篇文章类似

首先我们进入虚拟环境 使用scrapy shell 爬虫网址

其次我们通过xpath的方式获取指定的元素值


通过python scrapy shell 获取对应的网页元素值

通过python scrapy shell 获取对应的网页元素值

最后我们通过 css获取

通过python scrapy shell 获取对应的网页元素值