How to extract raw html from a Scrapy selector?

后端 未结 3 1447
孤城傲影
孤城傲影 2021-01-12 15:35

I\'m extracting js data using response.xpath(\'//*\')re_first() and later converting it to python native data. The problem is extract/re methods don\'t seem to provide a way

3条回答
  •  深忆病人
    2021-01-12 15:46

    Since parsel 1.2.0 (2017-05-17) you can pass replace_entities=False to both re and re_first to avoid the default behavior.

提交回复
热议问题