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)
我可以看到他們。
有關如何挖掘和獲取玩家名稱的任何建議?
數據動態加載 –