I'm doing a program on python that does the following:
- Gets info from a web.
- Puts it on a .txt file.
I've used urllib2.urlopen() for giving me the HTML code, but I want the info of the page. I say:
urllib2.urlopen() gets HTML. But I want that HTML written on text, I don't want HTML code!!
My program at the moment:
import urllib2
import time
url = urllib2.urlopen('http://www.dev-explorer.com/articles/using-python-httplib')
html = url.readlines()
for line in html:
print line
time.sleep(5)