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
You can also utilise the same function that is used by the Selector class' extract method, but with different arguments:
Selector
extract
from lxml import etree etree.tostring(selector._root)