Python WebKitWebView: how to get (generated) source code
Question: Is it possible to get the generated source code (so including JavaScript added
DOM nodes) with Python and WebKit, and if so, how?

    
    
    import webkit
    web_view = webkit.WebView()
    web_view.open('http://google.com')
    

But then?


Answer: Bind a function to the `loadFinished(bool)` signal, in that function you can
use `mainFrame().toHtml()` to get the source code.

