私はlxmlを使用して、次のようなFacebookコメントタグを持つhtmlを解析しています。
<fb:comments id="fb_comments" href="http://example.com" num_posts="5" width="600"></fb:comments>
href値を取得するために選択しようとしていますが、選択するとcssselect('fb:comments')
次のエラーが発生します。
The pseudo-class Symbol(u'comments', 3) is unknown
それを行う方法はありますか?
編集: コード:
from lxml.html import fromstring
html = '...'
parser = fromstring(html)
parser.cssselect('fb:comments') #raises the exception