用python bs4的CSS选择器报错:
NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type.
原因是bs4不支持nth-child(3)
,改为nth-of-type(3)
,就解决了。
微信扫一扫
用python bs4的CSS选择器报错:
NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type.
原因是bs4不支持nth-child(3)
,改为nth-of-type(3)
,就解决了。
相关推荐