Lxml or Xpath content print
- by Angelo
function=
def parseTitle(self, post):
"""
Returns title string with spaces replaced by dots
""
return post.xpath('h2')[0].text.replace('.', ' ')
i would to see the content of post. Tried all .
How can i properly debug the content. ir is an webstite of movies where i rip links and tittle.
So this one should parse the title.and i am sure H@ is not existing , how to print/debug it?