I'm using urllib2 to open a url. Now I need the html file as a string. How do I do this?
In python3, it should be changed to urllib.request.openurl('http://www.example.com/').read().decode('utf-8').
urllib2 to string