Skip to content

Subucc/Brawl-Stars-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Brawl-Stars-API

Introduction

Brawl Stars client based on official Brawl Stars API

Installation

pip install for the stable version #NOT IMPLEMENTED YET

Examples

Getting Started

import brawlstars

token = "YOUR TOKEN" # You can create your token in: https://developer.brawlstars.com/#/getting-started
client = brawlstars.Client(token)

player1 = client.get_player("PLAYER TAG")
club1 = client.get_club("CLUB TAG")

print(player1.get_info())
print(club1.get_info())

Getting Specific Informations

player1_info = player1.get_info()
print(player1_info['trophies'])

>> 10000

Example of printing all brawlers

player1_info = player1.get_info()
for brawler in player1_info['brawlers']:
    print("Brawler name: " + brawler['name'] + " | Trophies: " + str(brawler['trophies']))

>> Brawler name: SHELLY | Trophies: 500
>> Brawler name: COLT | Trophies: 359
>> Brawler name: BULL | Trophies: 438
>> Brawler name: BROCK | Trophies: 395

About

Brawl stars API based on official API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages