An open API service indexing awesome lists of open source software.

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.

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:
![Save report](images/save_report.png)

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.