Collect html text content HELP!

Hello. the html contains private information that I don’t want to disclose. what I want is exactly what is shown in the topic below. but in the example it is only for one line of text, and what I intend to do is the same for 128 lines of which everyone starts with 1. Thanks