Python script for counting all the playtime spent (in seconds) in Heroes of the Storm, all together, and per hero.
# Usage: python hots-playtime.py <player name> <path to replays> <path to output json>
python hots-playtime.py CoolUsername "path/to/replay/account" "path/to/output/json"
Heroprotocol needs to be set up in the environment for this script to function.
python -m pip install --upgrade heroprotocol
Requires Python 3.8.2