kolibrios/programs/network/netsurf/libhubbub/perf/html5libtest.py
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00

13 lines
204 B
Python
Executable File

#!/usr/bin/python
import sys
import html5lib
if len(sys.argv) != 2:
print "Usage: %s <file>" % sys.argv[0]
sys.exit(1)
f = open(sys.argv[1])
parser = html5lib.HTMLParser()
document = parser.parse(f)