1
我一直在尝试使用BS4从this网页刮。我找不到我想要的数据(表格中的球员名称,即“Claiborne,Morris”)。美丽的汤4发现表内的文字
当我使用:
soup = BeautifulSoup(r.content, "html.parser")
PlayerName = soup.find_all("table")
print (PlayerName)
球员的名字都不是,甚至在输出,它只是呈现出不同的表。
当我使用:
soup = BeautifulSoup(r.content, 'html.parser')
texts = soup.findAll(text=True)
print(texts)
我可以看到他们。
有关如何挖掘和获取玩家名称的任何建议?
数据动态加载 –