There is a list consisting of the following lists:
['Member Profile Mostafa', 'site1 / 1', 'Website', 'site2', 'Twitter', 'sdfsdf', 'WeChat'] ['Member Profile Dinesh', 'site1 / 2', 'Twitter ',' 45fghfgh ',' Birthday ',' October 28 '] [' Roman Profile ',' site1 / 3 ',' Twitter ',' drgedrg ',' Birthday ',' February 9 ']
Items with even indices in nested lists are column headings. You need to save the data in a CSV in this form:
Member profile Website Twitter WeChat Birthday site1 / 3 site2 sdfsdf empty empty site1 / 2 empty 45fghfgh empty October 28 site1 / 3 empty drgedrg empty February 9
That is, we read the table headers by searching them in lists. After that we form the table. It contains user information on each line.
How to do it?