D
D
DJDiM2021-03-04 00:45:25
Parsing
DJDiM, 2021-03-04 00:45:25

What format does csv have when parsing an article with comments?

I'm learning to make parsers. The task is to parse all articles with comments from the site. I don’t understand, if the entire export is done in one file, how to correlate the comments to each specific article, so that when further importing, the comments are poured into the corresponding article?
I would be very grateful for an example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-03-04
@bacon

csv is a flat table, and you have a connection in your task, so either use a database, or organize the connection in csv yourself: make two article files and comments, for each article an additional unique field, and the same field for a comment with a value from articles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question