Как отобразить веб-страницу в формате HTML в консоли.
import sys
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QUrl
from PyQt4.QtWebKit import QWebView
app = QApplication(sys.argv)
view = QWebView()
view.load(QUrl('http://example.com')
# What next? how to do something like:
# print view.read() ???
# to display something similar to that:
# <html><head></head><body></body></html>