GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — gcode-import/python3 at master · html5lib/gcode-import Expand file tree/ Copy pathpython3/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy pathpython3/Folders and fileshtml5lib is a pure-python library for parsing HTML. It is designed to
conform to the HTML 5 specification, which has formalized the error handling
algorithms of popular web browsers.
= Installation =
html5lib is packaged with distutils. To install it use:
$ python setup.py install
= Tests =
You may wish to check that your installation has been a success by
running the testsuite. All the tests can be run by invoking
runtests.py in the html5lib/tests/ directory
= Usage =
Simple usage follows this pattern:
import html5lib
f = open("mydocument.html")
parser = html5lib.HTMLParser()
document = parser.parse(f)
More documentation is avaliable in the docstrings or from
http://code.google.com/p/html5lib/wiki/UserDocumentation
= Bugs =
Please report any bugs on the issue tracker:
http://code.google.com/p/html5lib/issues/list
= Get Involved =
Contributions to code or documenation are actively encouraged. Submit
patches to the issue tracker or discuss changes on irc in the #whatwg
channel on freenode.net
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |