【发布时间】:2014-07-23 02:44:25
【问题描述】:
我正在尝试使用以下 HTML 解析网站。
我正在使用 Python 和 BeautifulSoup。
如何从中提取文本 Texas Rangers?
因为不在课堂上,我遇到了麻烦? 谢谢,
马特
<div class="team">
<span class="team-logo mlb tex"></span>Texas Rangers
<br />
<a class="fancy" href="/split_stats/index/Baseball/Pitcher/107">BvP</a>
·
<a class="fancy" href="/split_stats/index/Baseball/Righty/107">vs. R/a>
·
<a class="fancy" href="/split_stats/index/Baseball/Away/107">Away</a>
·
<a class="fancy" href="/split_stats/index/Baseball/Night/107">Night</a>
</div>
【问题讨论】:
标签: python python-3.x web-scraping beautifulsoup