Lxml or Xpath content print
Posted
by Angelo
on Stack Overflow
See other posts from Stack Overflow
or by Angelo
Published on 2010-03-04T06:07:41Z
Indexed on
2010/05/06
9:58 UTC
Read the original article
Hit count: 290
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?
© Stack Overflow or respective owner