https://github.com/victorola-coder/csvon
https://github.com/victorola-coder/csvon
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/victorola-coder/csvon
- Owner: Victorola-coder
- Created: 2025-10-16T13:48:01.000Z (10 months ago)
- Default Branch: dev
- Last Pushed: 2025-10-16T13:48:30.000Z (10 months ago)
- Last Synced: 2025-10-17T16:52:45.169Z (9 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.Md
Awesome Lists containing this project
README
# Data generation (Health Aid)
This repository includes a script to convert the CSV into a normalized JSON file for the app.
## Files
- `Natural Health Hacks - Health-Aid.csv` — source data (as shared)
- `scripts/parse_health_aid.py` — parser and normalizer
- `data/health_aid.json` — generated output (84 remedies)
## Run
```bash
python3 "scripts/parse_health_aid.py"
```
The script will write the JSON to `data/health_aid.json`.
## Notes
- The parser fixes some common misspellings and normalizes spacing, but avoids heavy edits; please review content for medical accuracy.
- Grouping logic: a new remedy begins when the `Items` column is non-empty; subsequent rows with an empty `Items` belong to the previous remedy.
- `ingredients` are simple strings for now; we can structure them later as `{name, quantity, unit}`.