【发布时间】:2015-09-23 07:39:46
【问题描述】:
price_single = hoteldata.xpath("//*[re:match(@id, 'js_item_[0-9]+')]/div[1]/div[2]/div[3]/strong[2]/text()").extract()
如何在没有 &lrm 的情况下获取 html 文本 因为 &lrm 我得到你'\n \u200eRs.9,068\n',这个输出 是否有机会删除这些空格并提供 9,068 卢比的输出
谢谢
【问题讨论】:
-
请阅读How to ask
-
粘贴一些代码会很好地查看您已经尝试过的内容。为此,请编辑您的问题,您也可以在其中格式化代码。
-
@GHajba 我在上面添加了代码
标签: python-2.7 web-crawler scrapy scrapy-spider