This script will create JSON files for Automatic1111 Web UI.
It will parse each of the model.civitai.info files that are created by the Civitai Helper extension.
https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper
It captures the following data:
The Activation Words
The URL the file was downloaded from
The Model the file was trained on
The Description
It will store all of that in the JSON to be easily accessed from the WebUI.
Instructions:
Place the Python file in a folder with the models you want to parse.
It will run recursively through any folder you run it from as well as subfolders.
Run the script by either double-clicking on the Python file or the included .Bat file.
In the cases where you may already have some JSON files with configured Activation Words, it will not overwrite those words in the file, and instead just update the other notes Data. This prevents overwriting models configured with optimal words already set.