Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skzap/dota2-rating
Attempting to rate publicly exposed dota2 players by parsing game results from the steam API
https://github.com/skzap/dota2-rating
Last synced: 2 days ago
JSON representation
Attempting to rate publicly exposed dota2 players by parsing game results from the steam API
- Host: GitHub
- URL: https://github.com/skzap/dota2-rating
- Owner: skzap
- License: mit
- Created: 2014-12-16T03:13:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-16T04:13:52.000Z (about 10 years ago)
- Last Synced: 2024-12-14T06:41:53.388Z (15 days ago)
- Language: JavaScript
- Size: 848 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dota2-rating
Attempting to rate publicly exposed dota2 players by parsing game results from the steam API
## Requirements
+ npm
+ mongodb
+ steam api key## How to run
Install dependenciesnpm install
Edit config file to put your API key and database connection string
config.key = 'YOUR_STEAM_API_KEY';
config.connectionString = 'mongodb://127.0.0.1:27017/dota2';Run it
node app
And the players collection in the database will build. Rating algorithm used is [TrueSkill](https://github.com/izaakschroeder/trueskill)
## Querying the database
### Top 50
db.players.find().sort({'rating.mu': -1}).limit(50)
### Average Rating
db.players.aggregate([{$group:{_id:null,total:{$avg: '$rating.mu'}}}])