Scripts to parse data from dota league matches.
- Get the code.
- Open cmd in a code folder.
- Setup virtualenv:
pip install virtualenv
virtualenv .virtualenv
- Activate virtualenv:
.virtualenv\Scripts\activate.bat
- Download project dependencies:
pip install -r requirements.txt
- Create database:
python manage.py migrate
- Create an admin user for db
python manage.py createsuperuser
- First download the list of dota heroes:
python manage.py get_heroes
- Now you can download data for your desired league:
python manage.py get_league_data 13515
After these steps you will have a database with league players, matches and teams that you can use query for stats.
To update database with new matches just use the script again.
You can download data for multiple leagues by using get_league_data
with other leagues ids.
- You can see database data in Django admin panel:
python manage.py runserver
Then open http://127.0.0.1:8000/admin
in browser and login with your superuser credentials.