public
Description: Google's Webkit, ported to Python, ported to Desktops.
Homepage: http://lkcl.net/pyjamas-desktop
Clone URL: git://github.com/lkcl/pyjamas-desktop.git
100644 20 lines (14 sloc) 0.365 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import libxml2, sys
from lxml import etree
 
broken_html = open("examples/helloworld/Hello.html").read()
 
doc = etree.HTML(broken_html)
#print doc, doc.attrib, dir(doc), dir(doc[0])
#print etree.tostring(doc)
b = doc.find('body')
#b.__reduce__ = lambda x:x
b.__reduce__
#print doc.makeelement.__doc__
#print dir(etree)
 
import pickle
 
s = pickle.dumps(doc)
 
print s