mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 18:27:05 +02:00
671a7cfd181a1cb305e5a820dbb19116c78dcc03
blitz-tools
Python scripts to analyze WoT Blitz replays and stats. All the scripts require Python 3.7 or higher.
Replays
- wotbreplay_uploader.py: An asynchronous replay uploader.
- postwotreplay.py: A simple WoT Replay uploader. Prints the received JSON from https://wotinspector.com
- analyzeReplays.py: A tool to calculate statistics of a set of replays. Upload the replays first with wotbreplay_uploader.py and then calculate the statistics.
Tank data
- getTankopedia.py: Get the lastest tankopedia data from wotinspector.com. The script fetches only a limited set of data. You may edit to your needs.
- extractTankopedia.py: Extract Blitz data directly from the Blitz app files. You need to download the Blitz App APK package and unzip it to a folder. Requires Python 3.7 or higher.
Utils
- blitzutils.py: A utils class for various Blitz related to functions. Other scripts use this, so you need to place it to the same folder with the other scripts
Data
- tanks.json: Tankopedia in WG JSON format extracted from the Blitz app files with [extractTankopedia.py]](extractTankopedia.py]). Contains only limited information required by the scripts.
- maps.json: Blitz map names extracted from the Blitz app files with [extractTankopedia.py]](extractTankopedia.py]).
Quick instructions
- Install Python 3.7 on to your computer/laptop
- Download all the files including the maps.json and tanks.json files
- Install the required Python modules: aiohttp, aioconsole, aiofiles, beautifulsoup4, lxml, xmltodict
python -m pip install aiohttp aioconsole aiofiles beautifulsoup4 lxml xmltodict
- Upload your replays. Run python.exe .\wotbreplay_uploader.py --help (Windows) or ./wotbreplay_uploader.py --help (Linux)
- Analyze replays. Run python.exe .\analyzeReplays.py --help (Windows) or ./analyzeReplays.py --help (Linux)
You can reach me via email: [email protected] or Discord: Jylpah#4662. Happy tanking and stats analysis!
Languages
Python
100%