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