摘要: bookstoscrape 1 import scrapy 2 from spider_01_books.items import BookItem 3 4 class BookstoscrapeSpider(scrapy.Spider): 5 """爬虫类,继承spider""" 6 #爬虫名称- 阅读全文
posted @ 2022-05-30 23:41 安好_世界 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 测试命令:scrapy shell http://books.toscrape.com/可以填写任何url 返回的这些对象我们可以直接去使用 例如验证自己的xpath编写是否正确。 阅读全文
posted @ 2022-05-30 00:03 安好_世界 阅读(20) 评论(0) 推荐(0) 编辑