V
V
vox_termin2021-08-13 19:37:37
HTML
vox_termin, 2021-08-13 19:37:37

How to structure data from html files into a table?

Hey!

There are several thousand html files on the local PC.
The structure is like:

<h1>
<url>
<несколько p с контентом>
<meta keywords>

How to get data from all html files and compose into a table (for further import as csv on wordpress)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RusiDev, 2021-08-13
@vox_termin

You open a file, you read. With the help of beautifulsoup you pull out exactly what you are interested in.
As soon as you go through all the files, write the data to the table.
Or you can enter data into the table after each closing of the N-file

K
Karpion, 2021-08-14
@Karpion

It depends on what kind of data is there and how it is formatted. I think the easiest way is to write the script in Perl or a similar language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question