随笔分类 -  scrapy

scrapy - scrapy - scrapy
摘要:Item Loaders 基本写法 # item from dataclasses import dataclass, field from typing import Optional @dataclass class InventoryItem: name: Optional[str] = fi 阅读全文
posted @ 2020-10-27 09:02 xt12321 阅读(93) 评论(0) 推荐(0)
摘要:scrapy Selector https://docs.scrapy.org/en/latest/topics/selectors.html 基本使用 selector 常规写法: >>> response.selector.xpath('//span/text()').get() 'good' 阅读全文
posted @ 2020-10-27 09:01 xt12321 阅读(125) 评论(0) 推荐(0)