I have a html response on a string. I am trying to make a HtmlXPathSelector out of it, so that i can use xpaths on it. But it shows,
TypeError: cannot create weak reference to 'str' obj
Any idea how to convert string to the response object that HtmlXPathSelector accepts?
hxs = HtmlXPathSelector(text="my html")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With