Does anyone know an easy way to parse a webpage's text -> statistics?

hevnsnt

Lifer
Mar 18, 2000
10,868
1
0
Does that make sense?

lets say I have a webpage with the following text

A - 1
A - 1
A - 2
A - 1
A - 1
A - 2

output something like:
A - 1: 67%
A - 2: 34%