https://github.com/tristanbettany/citadelpaintparser
Parse GW's search response JSON into manageable data
https://github.com/tristanbettany/citadelpaintparser
citadel colour-palette games-workshop hex json paint search
Last synced: 7 months ago
JSON representation
Parse GW's search response JSON into manageable data
- Host: GitHub
- URL: https://github.com/tristanbettany/citadelpaintparser
- Owner: tristanbettany
- License: mit
- Created: 2021-03-05T19:50:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T22:08:43.000Z (over 4 years ago)
- Last Synced: 2025-02-01T01:35:13.357Z (8 months ago)
- Topics: citadel, colour-palette, games-workshop, hex, json, paint, search
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Citadel Paint Parser
This repo takes as input the JSON response from GW's search results on their website as a static `.json` file.
This file is then processed into JSON data that is more digestable. It also parses the product SVG files to extract the color of the paint as a Hex Code.
The result of the script is stored in this repo in a readable formatted version (in the `dist` folder).
Hopefully this simplified version of this data is useful to someone. It could help creating an inventory system for your paints.
## Usage
If you want to run this yourself and generate a newly parsed file, then do the following...
First replace the `searchResponse.json` file (in the `data` folder) with JSON from the GW website search response you want to parse.
Then run the below commands:
```
./app.bat build
./app.bat exec
```The resulting file will be placed in the storage folder called `products.json`
If you want to make this more readable then format it with an online formatter or your IDE.
Move the formatted file to the dist folder.