-3
As you read the HTML of the site, go deleting what is before. If there is any clear screen in Python.
import mechanize
response = mechanize.urlopen("https://www.exemplo.com")
m = 0
linha = ''
if (m < 100):
for n in response.read():
m += 1
linha += n
if (n == '\n'):
print(linha)
linha = ''
answer solved your question? Do you think you can accept it? See [tour] if you don’t know how to do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero