【发布时间】:2016-06-12 20:06:53
【问题描述】:
我正在尝试使用此 URL http://www.gosugamers.net/counterstrike/teams/7397-natus-vincere/matches 获取所有团队与团队信息以及隐藏在显示按钮下的分数。我试图获得 opp 1 与 opp 2 以及游戏的结果。这就是我迄今为止解决这个问题的结果。
def all_match_outcomes():
for match_outcomes in all_match_history_url():
page = requests.get(match_outcomes).content
soup = BeautifulSoup(page, 'html.parser')
for match_outcome in soup.select_one('div table.simple.gamelist.profilelist td'):
opp_1 = match_outcome.select_one('a').find('span')
print(opp_1)
【问题讨论】:
-
请显示您目前拥有哪些代码以及哪些代码不起作用。
-
是不是够清楚了还是应该把所有的代码都加进去?
标签: python python-3.x web-scraping beautifulsoup