I'm new to lxml and want to parse a page retrieved by "requests". My html is this:
<html>
<body>
<h1 class="entry-title">
<a href="http://a.com" rel="bookmark">
bla bla bla
</a>
</h1>
</body>
</html>
and I want to have a string that looks like this:
"""<h1 class="entry-title">
<a href="http://google.com" rel="bookmark">
bla bla bla
</a>
</h1>"""
what would be the code in python 3.4?
try something like this: