Leave characters like " escaped in Selector output

231 Views Asked by At

How to extract raw text with a Scrapy (Parsel) selector? By raw, I mean an escaped piece of text with e.g. " not turning into ".

Here's how to reproduce:

>>> Selector('<p>&quot;</p>').css('p::text').get()
'"'

Expected output: &quot;

Actual output: "

0

There are 0 best solutions below