I have a file that contains this:
<html>
<head>
<title> Hello! - {{ today }}</title>
</head>
<body>
{{ runner_up }}
avasd
{{ blabla }}
sdvas
{{ oooo }}
</body>
</html>
what is the best more pythonic way to extract the {{today}}, {{runner_up}} etc?
I know it can be done with splits/reg but I wonder if there is another way.
PS: consider the data loaded in a variable called thedata
:D
Thx
Edit: I think that the html example was bad, because it directed some commenters to BeautifuSoup. So, here is a new input data:
Fix grammatical or {{spelling}} errors.
Clarify meaning without changing it.
Correct minor {{mistakes}}.
Add related resources or links.
Always respect the original {{author}}.
output:
spelling
mistakes
author