mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 07:36:48 +03:00
370da47fa0
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
13 lines
204 B
Python
Executable File
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)
|