sc2reader
sc2reader copied to clipboard
Is there a way to update "unit_info.json" programmatically?
As you can see, unit_info.json is out of date for a long time.
Is there a way to get all the latest data and generate new file from balance data like sc2reader/generate_build_data.py
do?
Currently seems not. I guess the best way to do it is to write a script or a web crawler to fetch data from liquipedia. Besides, there seems lack build versions attached to the unit_info.json, which includes all the resources cost and building/unit info of each unit. This might cause issues when dealing with replays which are not latest.
https://docs.python.org/3/library/json.html certainly allows the creation of any json data that you want to gather up and load. If you created a pull request that demonstrated how to gather the data and create the file then other contributors could review it.