Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 scrapy 爬虫从网站爬取数据。如何<meta itemprop="rvalue" content="4.0">使用 select() 获取内容值?
<meta itemprop="rvalue" content="4.0">
item['key'] = xpath.select('//meta[@itemprop="rvalue"]/@content').extract()
它将返回一个列表,因此请使用项目加载器对其进行处理。