i want to extract a number from a html string (i usually do not know the number).
The crucial part looks like this:
You can try the following like this below:
line = "TOTAL : 286" if line.startswith('TOTAL : '): print(line[8:len(line)])
Output :
286