How to parse a text file containing this pattern "KEYWORD: Output:" and dump the result into output file using Python?
input.txt
DEBUG 2020-1