Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import webkit, gtk
- def get_source(webobj, frame):
- print "loading..."
- x = web.get_main_frame().get_data_source().get_data()
- print x
- win = gtk.Window()
- web = webkit.WebView()
- web.open("http://filmsbykris.com")
- web.connect("load-finished", get_source)
- win.add(web)
- win.show_all()
- gtk.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement