beatsaber-playlist-tool/docs/BeatLeaderPlayers.md

62 lines
2.5 KiB
Markdown

# BL Players
```python
from helpers.SimpleBeatLeaderAPI import SimpleBeatLeaderAPI
beatleader_api = SimpleBeatLeaderAPI()
player_data = beatleader_api.get_players()
# Filter players with high accuracy and rank better than 1000
high_accuracy_players = [
player for player in player_data
if player['scoreStats']['averageRankedAccuracy'] > 0.96 and
player['rank'] > 1000 and
player['scoreStats']['totalPlayCount'] > 1000
]
# Sort the filtered list by rank in descending order
high_accuracy_players_sorted = sorted(high_accuracy_players, key=lambda player: player['rank'])
for player in high_accuracy_players_sorted:
rank = player['rank']
name = player['name']
player_id = player['id']
accuracy = player['scoreStats']['averageRankedAccuracy'] * 100
total_plays = player['scoreStats']['totalPlayCount']
print(f" {rank}: {player_id} {accuracy:.2f}%, {total_plays} plays: {name}")
```
Results:
1002: 76561198108621262 96.84%, 2799 plays: Nano
1039: 76561198067254301 97.40%, 2083 plays: Muz
1106: 76561198020334769 96.70%, 1272 plays: Rexxz
1140: 76561198103016268 97.17%, 2635 plays: ACC | Wookie
1144: 76561198074878770 96.91%, 1007 plays: Jormungandr
1158: 76561198154593513 97.05%, 1283 plays: ZLQ
1182: 76561198398878358 96.51%, 1717 plays: Rimu
1221: 76561198141764746 97.71%, 1688 plays: ACC | Jani
1303: 76561198890357715 97.91%, 1824 plays: mojo
1333: 76561197977159578 96.35%, 1656 plays: Ando
1344: 76561198092977917 97.05%, 2906 plays: bluewingoo
1356: 76561199100866994 96.30%, 1800 plays: Dollface
1411: 76561198040296837 96.59%, 2043 plays: BSFR | Vred
1460: 76561198162613446 96.54%, 1581 plays: RockaX
1599: 76561198212831695 96.20%, 1274 plays: Xmpo
1798: 76561198139760882 96.13%, 1084 plays: W33talik
1907: 76561198084876475 96.51%, 1090 plays: NeroMJ
1932: 76561198163148965 96.37%, 1345 plays: Hygoto
2048: 76561198358170446 98.24%, 2130 plays: 19:47
2088: 76561198163772169 97.82%, 1239 plays: Kunya
2227: 76561198200272334 96.06%, 1442 plays: Arflic
2231: 76561197993806676 96.40%, 2296 plays: Taoh Rihze
2323: 76561199017645460 96.57%, 2033 plays: GF | Soogy
2353: 76561197999550197 96.42%, 1272 plays: ACC | Ixsen
2551: 3767819413276402 96.22%, 1192 plays: rileywip
2563: 76561198052914112 96.98%, 1365 plays: BlueFlame_MK
2607: 76561198023638450 96.23%, 22687 plays: Craedien
2763: 76561198017723775 96.63%, 1131 plays: ika
3272: 76561199157033165 96.09%, 1936 plays: Lumberjack462
3309: 76561199407393962 96.27%, 1777 plays: pleb