Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #!/usr/bin/python
  2.  
  3. import sys
  4. import html5lib
  5.  
  6. if len(sys.argv) != 2:
  7.         print "Usage: %s <file>" % sys.argv[0]
  8.         sys.exit(1)
  9.  
  10. f = open(sys.argv[1])
  11. parser = html5lib.HTMLParser()
  12. document = parser.parse(f)
  13.