bf3stats

Python interface to the bf3stats.com API


Keywords
bf3stats, library
License
GPL-2.0
Install
pip install bf3stats==0.99

Documentation

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 ;)