A library for fetching, processing, and analysis DOTA 2 statistics.
Via pip
with pip install dota
or clone the source and python setup.py install
.
- numpy
- pandas
- arrow
- requests
- lxml
- sqlalchemy
Finally, you'll need a Steam API key. See the dev forums for documentation on the DOTA 2 web API.
Example:
>>> from dota import api
>>> steam_id = "76561198025007092"
>>> with open('.key') as f:
key = f.readline().rstrip()
>>> con = api.API(key)
>>> history = con.get_match_history(steam_id=steam_id)