Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.
/ python-bf3stats Public archive

A Python library for accessing the bf3stats API

Notifications You must be signed in to change notification settings

ozon/python-bf3stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-bf3stats

Provide a simple Python interface to the bf3stats.com API

Where is the documentation?

Maybe I'll add one in the near future. Feel free to fork this repository and create one. I look forward to pull requests.

Code example?

import bf3stats
bf3stats = bf3stats.api()
# show count of online players
bf3stats.onlinestats()

Should show a dict: {360: 18166, pc: 38419, ps3: 40362, u'status': u'ok'} Or use the object _onlinestats = bf3stats.onlinestats() and access the values with _onlinestats.pc.

import bf3stats
bf3stats = bf3stats.api()
# get a dict with short stats of player O2ON
_player = bf3stats.player('O2ON')

Look in the _player dict/object ;)

About

A Python library for accessing the bf3stats API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages