D
D
Dmitry2021-10-26 05:00:06
Parsing
Dmitry, 2021-10-26 05:00:06

How to extract the necessary data from the html file?

I have a report from the logger, it is generated in html format, there are several fields of the user id, user name and the data that he uploaded, how can I extract all this? Tell me what tools are there, something simpler?

6177611971211007933832.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2021-10-26
@good_br

For a non-programmer, in this case, you can use excel
, copy the contents of the page in the browser through the buffer and paste it into a text file (into notepad),
then save it in excel, create an empty document, select data from the menu - import data from text, the import wizard will open, where you choose as a space separator, you get a plate.
disadvantage - in your particular case, if there may be spaces in usernames, then the resulting plate will go to them, you can fix it by manually shifting the fields by filtering

D
Dimonchik, 2021-10-26
@dimonchik2013

python +
beautifulsoup

N
Nadim Zakirov, 2021-10-26
@zkrvndm

The simplest option is the User Script for the browser, open the console and run the parser, there you will need literally one paragraph of code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question