mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-20 05:42:34 +03:00
13 lines
204 B
Python
13 lines
204 B
Python
|
#!/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)
|