mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
seang@res exception
This commit is contained in:
parent
0ab7925576
commit
fb9d645f6e
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -32,8 +32,9 @@ def top20teams():
|
||||||
for player_div in team.select('.ranking-lineup > div'):
|
for player_div in team.select('.ranking-lineup > div'):
|
||||||
player = {}
|
player = {}
|
||||||
player_anchor = player_div.select('.ranking-playerNick > a')[0]
|
player_anchor = player_div.select('.ranking-playerNick > a')[0]
|
||||||
player['name'] = player_anchor.text.strip()
|
|
||||||
player['player-id'] = converters.to_int(player_anchor.get('href'), regexp=True)
|
player['player-id'] = converters.to_int(player_anchor.get('href'), regexp=True)
|
||||||
|
if player['player-id'] == 1916:
|
||||||
|
player['name'] = "seang@res"
|
||||||
newteam['team-players'].append(player)
|
newteam['team-players'].append(player)
|
||||||
teamlist.append(newteam)
|
teamlist.append(newteam)
|
||||||
return teamlist
|
return teamlist
|
||||||
|
|
Loading…
Add table
Reference in a new issue