|
|
1
0
这个 documentation 表示:
此外,在 documentation here :
|
|
|
2
-1
嘿,我解决了这个问题。 我要做的是 1.收集所有标签(BeautifulSoup)和标签的所有子项(contents)
2.消除所有Navigablestring(因为它们不能接受has\u attr()方法)
3.如果标签具有属性“class”(has\u attr),并且没有“id”(也具有has\u attr),则过滤所有标签
打印或使用for循环等。。。 |
|
|
Stackie · 无法使用Selenium访问废料数据的链接 1 年前 |
|
|
Canberra · 从网站上删除纬度和经度 1 年前 |
|
|
zero · bs4方法访问维基百科页面:获取信息框 1 年前 |
|
|
Reonard1 · Web报废中的AttributeError 2 年前 |