Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottgriv/python-json_parser
A simple JSON object key/value parser written in Python. Define the key, run the program, and export the values in a CSV file.
https://github.com/scottgriv/python-json_parser
json json-parser json-parsing python utility-script
Last synced: 20 days ago
JSON representation
A simple JSON object key/value parser written in Python. Define the key, run the program, and export the values in a CSV file.
- Host: GitHub
- URL: https://github.com/scottgriv/python-json_parser
- Owner: scottgriv
- License: unlicense
- Created: 2023-09-17T17:54:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T17:57:50.000Z (11 months ago)
- Last Synced: 2024-12-08T16:46:50.570Z (25 days ago)
- Topics: json, json-parser, json-parsing, python, utility-script
- Language: Python
- Homepage:
- Size: 386 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------
Python JSON Parser
A simple Python script to parse a `JSON` file and output the results to a text file.
---------------
## Table of Contents
- [Background Story](#background-story)
- [Getting Started](#getting-started)
- [Resources](#resources)
- [License](#license)
- [Credits](#credits)## Background Story
I wanted to parse out a GitHub API response consisting of all of my repositories. The problem is, there are too many `JSON` elements to parse out manually. I needed a way to parse out specific the `JSON` elements values only, automatically. So I built this!
## Getting Started
1. Clone this repository.
2. Install [Python](https://www.python.org/downloads/).
3. Install [Pip](https://pip.pypa.io/en/stable/installing/).
4. Place your `JSON` file in the root directory of this repository (see `example.json`).
5. Adjust the script to parse out the `JSON` elements you want (see `json_parser.py` - lines 7-9 currently set to parse out the first instance of "name").
4. Run the script: `python json_parser.py`
5. View the output in the `output.txt` file.## Resources
- [Python](https://www.python.org)
- [Pip](https://pip.pypa.io/en/stable/installing/)
- [JSON](https://www.json.org/json-en.html)## License
This project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit.
- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the [LICENSE](LICENSE) file in this repository.## Credits
**Author:** [Scott Grivner](https://github.com/scottgriv)
**Email:** [[email protected]](mailto:[email protected])
**Website:** [scottgrivner.dev](https://www.scottgrivner.dev)
**Reference:** [Main Branch](https://github.com/scottgriv/python-json_parser)---------------