This python script will parse the OWASP Web Top 10 pages and pull out the top level, reference, and CWE links into a JSON format file.
This was developed out of a need for OWASP Top 10 links in a json format to be included in automation.
To run (assumes PipEnv is installed):
- Clone to your desired location
- Create your .env file, setting the FILE and DEBUG values
URL=https://owasp.org/Top10/
FILE=web_2021.json
DEBUG=True
- From the command line, run
pipenv shell
pipenv install
pipenv run python main.py
pipenv --rm
- Your file containing the output should be in the root folder.