chg: [tools] quick-and-dirty tools to generate markdown list of taxonomies for misp-project.org
parent
3320d14b68
commit
85d042dd45
|
@ -0,0 +1,9 @@
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
filename = os.path.join("../", "MANIFEST.json")
|
||||
with open(filename) as fp:
|
||||
t = json.load(fp)
|
||||
|
||||
for taxo in sorted(t['taxonomies'], key=lambda k: k['name']):
|
||||
print ("[{}](https://github.com/MISP/misp-taxonomies/tree/master/{}):\n: {}[HTML](https://www.misp-project.org/taxonomies.html#_{})\n".format(taxo['name'], taxo['name'], taxo['description'], re.sub(r'_', '-',taxo['name'])))
|
Loading…
Reference in New Issue