我有一个有多个表的页面。我试图得到一个名为“TabBox”的表,但它似乎正在抓取一个名为“TabBox2”的表。有什么想法吗?在
有一个“TabBox2”包装两个表。似乎它正在搜索“TabBox”的第一个实例,而不管它的名称是“TabBox2”还是“TabBox”。在
table = soup.find("table", { "class" : "GroupBox3" })
rows = table.find_all("tr")
table2 = soup.find("table", { "class" : "TabBox" })
rows2 = table.find_all("tr")
rows2应该=table2.find
谢谢你,布拉尼亚克!在
^{pr2}$
尝试以下操作:
相关问题 更多 >
编程相关推荐