mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
Updated top_players to get team name
This commit is contained in:
parent
30404fbd8f
commit
27d0785ddb
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -56,6 +56,7 @@ def top_players():
|
|||
player = {}
|
||||
player_link = player_elem.find('a')
|
||||
player['name'] = player_link.text
|
||||
player['team'] = player_elem.text.split("(")[1].split(")")[0]
|
||||
p_url = player_link['href']
|
||||
player['player-id'] = converters.to_int(p_url[p_url.index('playerid=')+9:p_url.index('&statsfilter')])
|
||||
player['stat'] = player_elem.select('div:nth-of-type(2)')[0].text
|
||||
|
|
Loading…
Add table
Reference in a new issue