xcodinas / fortnite-python

Python wrapper for http://fortnitetracker.com/ api.
MIT License
10 stars 6 forks source link

Lifetime #19

Closed 0xAwayy closed 5 years ago

0xAwayy commented 5 years ago

How would you get lifetime stats with this wrapper?

0xAwayy commented 5 years ago

Such as lifetime wins. K/D. Games played and one for each mode, etc...

xcodinas commented 5 years ago

Once you have the stats (get_stats) you can access to the mode stats you want..

>>> stats
<Stats 1>
>>> dir(stats)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_data', 'from_json', 'id', 'kd', 'kills', 'kpg', 'matches', 'score', 'score_per_match', 'to_snake', 'top1', 'top10', 'top12', 'top25', 'top3', 'top5', 'top6', 'trn_rating', 'win_ratio']