https://github.com/marksowell/retire-html-api-parser
Retire HTML API Parser is an automation tool that parses Retire.js HTML results, enhancing vulnerability reporting for JavaScript libraries. This solution leverages Google Custom Search API.
https://github.com/marksowell/retire-html-api-parser
Last synced: about 2 months ago
JSON representation
Retire HTML API Parser is an automation tool that parses Retire.js HTML results, enhancing vulnerability reporting for JavaScript libraries. This solution leverages Google Custom Search API.
- Host: GitHub
- URL: https://github.com/marksowell/retire-html-api-parser
- Owner: marksowell
- License: mit
- Created: 2023-08-07T15:01:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T15:19:07.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T08:46:05.054Z (3 months ago)
- Language: Python
- Size: 281 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Retire HTML API Parser
The Retire HTML API Parser consists of a client-side script to parse HTML files generated by the [Retire.js](https://github.com/RetireJS/retire.js) tool and utilizes the Google Custom Search API to add vulnerability data for the identified JavaScript libraries. The consolidated results are then presented to the user in a clear and comprehensive format through the client-side script.
## Requirements
- Python 3.x
- Libraries: `bs4`, `requests`
You can install these using pip: `pip install beautifulsoup4 requests`
- Google Custom Search API key and Search Engine ID## Setup
1. Clone the repository:```bash
git clone https://github.com/marksowell/retire-html-api-parser.git
cd retire-html-api-parser
```
2. Replace the placeholders and in the script with your actual Google Custom Search API key and Search Engine ID, respectively.## Usage
1. Save the report:
2. Run the script using the following command:
```bash
python retire_parser.py
```
Replace `` with the path to the HTML report generated by `retire.js`.## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.