0
內不顯示跨度類美麗的湯我使用beautifulsoupdiv標籤
<div class="team-1-name">
"
India
"
<span class="innings-1-score innings-current">120/1 (40.0 ov)</span>
</div>
soup.prettify()甚至不顯示的跨度類是無法取消的跨度類。
print(soup2.prettify())
輸出:
<div class="team-2-name">
India
</div>
team1_soup=soup2.find(class_="team-1-name")
print(team1_soup.find("span"))
None
請幫助
張貼網址..... –
URL:http://www.espncricinfo.com/ci/engine/match/1062575.html –