首页 > 解决方案 > 如何提取元素中标签后的文本

问题描述

标签: pythonweb-scrapingscrapy

解决方案


仅适用于“Rest_of_text”,您可以使用response.xpath('//div/strong/following-sibling::text()').get()


推荐阅读