No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AP_ITEM_DATASET
.gitignore
after.json
before.json
package.json
pickup.js
process.js
readme.md
riot.txt

readme.md

Author: Aditya Vijayakumar

Main code files:

  1. pickup.js - Helpers to fetch data from Riot
  2. process.js - Main file that process and prints the data after parsing

Pre-reqs:

nodejs

Install:

npm install

Run:

node process.js <region> <before.json> <after.json> <apikey> [changePct] [delayMills] [paralleleRequestCount]

  • region = region(lowercase) [E.g. na, ...]
  • before.json = json file that contains matchIDs
  • after.json = json file that contains matchIDs
  • apiKey = Riot provided API key
  • changePct = If AP item count is above/below this percent we trigger it as an anomoly[20 by default]
  • delayMills = Mills delay per match fetch request(Since riot is capping it at 10 req/10 sec)
  • paralleleRequestCount = maximum parallel requests possible

Example usage:

Under low rate limit:

node process.js na before.json after.json <apiKey>

With production rate limit:

node node process.js na AP_ITEM_DATASET/5.11/NORMAL_5X5/NA.json AP_ITEM_DATASET/5.14/NORMAL_5X5/NA.json <apiKey> 20 1 270

  • 20 = If there is a 20% increase/decrase in a particular item usage we print out the itemName and usage stats
  • 1 = 1 Millisecond delay/request
  • 270 = 270 parallel requests
Should spit out
1. Success: na : 1852548676
2. Success: na : 1852561073
3. Success: na : 1852560871
4. Success: na : 1852558827
5. Success: na : 1852559208
...
541. Failure: na : 1852574296 - 429 // the occasional fetch failures due to RATE LIMIT(This will be discarded)
...
9997. Success: na : 1900848025
9998. Success: na : 1900848079
9999. Success: na : 1900848033
10000. Success: na : 1900848126
Success: na : DATA

INCREASED USAGE AFTER UPDATE: 
--------------------------------
1] (+)42% 	before: 4162	after: 5941	- Amplifying Tome
2] (+)24% 	before: 5263	after: 6554	- Needlessly Large Rod
3] (+)665% 	before: 106	after: 811	- Zeke's Harbinger
4] (+)51% 	before: 2227	after: 3383	- Rylai's Crystal Scepter
5] (+)33% 	before: 2923	after: 3898	- Liandry's Torment


DECREASED USAGE AFTER UPDATE: 
--------------------------------
1] (-)20% 	before: 5915	after: 4898	- Blasting Wand
2] (-)32% 	before: 2655	after: 2010	- Abyssal Scepter
3] (-)33% 	before: 1551	after: 1162	- Seraph's Embrace
4] (-)44% 	before: 889	after: 616	- Mejai's Soulstealer
5] (-)22% 	before: 2197	after: 1799	- Sheen
6] (-)22% 	before: 265	after: 216	- Banner of Command
7] (-)64% 	before: 6471	after: 3943	- Lich Bane
8] (-)21% 	before: 1550	after: 1278	- Fiendish Codex
9] (-)49% 	before: 2987	after: 1999	- Aether Wisp
10] (-)50% 	before: 5161	after: 3428	- Void Staff
11] (-)21% 	before: 329	after: 271	- Hextech Revolver
12] (-)34% 	before: 1024	after: 763	- Will of the Ancients
13] (-)58% 	before: 2505	after: 1576	- Seeker's Armguard
14] (-)58% 	before: 12239	after: 7719	- Luden's Echo