2
html5lib注意到它的最新版本(0.11)有點舊。使用Python部分,我遇到遞歸問題,如Issue 70和Issue 59中所述,但無法找到最新的穩定的Mercurial修訂版。html5lib的哪個版本是穩定的?
最新的尖端是不行的,我從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。
我試圖建立在Windows最新版本(ceffcafb7e)。 10009測試運行,139失敗和216錯誤。它〜97%穩定...... :) – 2009-07-15 00:33:53