FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
html5lib-python/README at master · mfa/html5lib-python · GitHub
mfa
/
html5lib-python
Public
forked from
html5lib/html5lib-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
html5lib-python
/
README
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (25 loc) · 1 KB
Breadcrumbs
html5lib-python
/
README
Copy path
File metadata and controls
39 lines (25 loc) · 1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
html5lib 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
Back
|
FazBrowse Home
|
New Git URL