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

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

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


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

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

最后我们通过 css获取

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

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2021-09-07
  • 2021-05-28
  • 2021-12-22
  • 2021-12-18
相关资源
相似解决方案