This is a repo containing all the scripts used to parse data from War Thunder and store it in a database.
- Python 3.10+
-
Clone the repo
-
Clone this other repo: War Thunder Datamine.
-
Specify in an
.env
file (placed inside the utils folder) the path to the datamine repo. Place the file in the directory called "utils". The.env
file should look like this:DATAMINE_LOCATION="path/to/datamine/repo"
-
Run
python main.py
in the root directory of this repo.
The full execution of the script will result in a database file being created in the root directory of this repo, JSON raw data files in each nation folder, images in the assets folder and JSON localisation files in the locales folder.
Warning: if the generated database file already exists, versioning featur will automatically be enabled. This means that all the vehicles that have been modified since the last major update will be moved into another table called "vehicles_old" and the new vehicles will be added to the main table.
- Document the code.
- Fork the repo
- Make your changes
- Create a pull request