Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question