哪个版本的html5lib稳定?

时间:2009-07-13 22:42:51

标签: python html5lib

html5lib注意到它的最新版本(0.11)有些陈旧。使用Python部分,我有Issue 70Issue 59中提到的递归问题,但找不到最近稳定的Mercurial版本。

最新提示不好,我从python setup.py install收到了以下错误:

byte-compiling build/bdist.linux-x86_64/egg/html5lib/treewalkers/_base.py to _base.pyc
  File "build/bdist.linux-x86_64/egg/html5lib/treewalkers/_base.py", line 40
    "data": []}
         ^
SyntaxError: invalid syntax

我在运行时遇到以下错误:

    soup = parser.parse(page.read())
  File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 165, in parse
  File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 144, in _parse
  File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 454, in processDoctype
TypeError: insertDoctype() takes exactly 4 arguments (2 given)

我在Python 2.5.2上使用它与lxml和BeautifulSoup。

1 个答案:

答案 0 :(得分:1)

截至2010年1月,版本0.90看起来像你想要的那样:

http://code.google.com/p/html5lib/downloads/list