blob: 3630fe80c7bb334401600d6e92f118d29c395fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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)
|