What pseudo-classes are supported in bs4 for Python, specifically nth-of-type?
- 内容介绍
- 文章标签
- 相关推荐
本文共计76个文字,预计阅读时间需要1分钟。
使用Python的bs4库进行CSS选择器时遇到错误:`NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type`. 原因是bs4不支持nth-child选择器。改为使用nth-of-type选择器即可解决问题。
用python bs4的CSS选择器报错:
NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type.原因是bs4不支持nth-child(3),改为nth-of-type(3),就解决了。
本文共计76个文字,预计阅读时间需要1分钟。
使用Python的bs4库进行CSS选择器时遇到错误:`NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type`. 原因是bs4不支持nth-child选择器。改为使用nth-of-type选择器即可解决问题。
用python bs4的CSS选择器报错:
NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type.原因是bs4不支持nth-child(3),改为nth-of-type(3),就解决了。

