from mechanize import Browser br = Browser() br.open(\'http://somewebpage\') html = br.response().readlines() for line in html: print line
When p
You can write your own function:
def StripTags(text): finished = 0 while not finished: finished = 1 start = text.find("<") if start >= 0: stop = text[start:].find(">") if stop >= 0: text = text[:start] + text[start+stop+1:] finished = 0 return text