title: Parsing HTML using QWebElement, how to extract an image?
body: <p>I struggle to use QWebElement. As an exercise, I would like to capture the "Google" logo from page <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>. The image is in <code>&lt;div id="hplogo" ...&gt;</code>, but I don't know how to extract it. How shall I use the "doc" QWebElement in the following code? ("CSS selector" is obscure jargon to me).
  Thank you.</p>
  
  <pre><code>from PyQt4.QtGui import QApplication
  from PyQt4.QtWebKit import QWebView
  from PyQt4.QtCore import QUrl
  
  app = QApplication([])
  view = QWebView()
  view.load(QUrl("http://google.com"))
  view.show()
  doc = view.page().currentFrame().documentElement()   # run this after 'loadFinished'
  </code></pre>