Требуется написать парсер файла xml в файл csv, а сам файл xml находится по ссылке в zip архиве.
Файл csv должен генерироваться рядом с файлом python скрипта и при новой генерации файла, старый файл csv должен перезаписываться на новый.
Данные для получение архива:
POST запрос на адрес:
dantexgroup.ru/export/yml... Form Data:
options[0][name]: pic-link
options[0][value]: Y
sections[0][name]: 1229
sections[0][value]: 1229
sections[1][name]: 1234
sections[1][value]: 1234
sections[2][name]: 1248
sections[2][value]: 1248
sections[3][name]: 1238
sections[3][value]: 1238
sections[4][name]: 1233
sections[4][value]: 1233
sections[5][name]: 1306
sections[5][value]: 1306
sections[6][name]: 1237
sections[6][value]: 1237
sections[7][name]: 1232
sections[7][value]: 1232
sections[8][name]: 1247
sections[8][value]: 1247
sections[9][name]: 1236
sections[9][value]: 1236
sections[10][name]: 1231
sections[10][value]: 1231
sections[11][name]: 1235
sections[11][value]: 1235
sections[12][name]: 126
sections[12][value]: 126
sections[13][name]: 241
sections[13][value]: 241
sections[14][name]: 240
sections[14][value]: 240
sections[15][name]: 125
sections[15][value]: 125
sections[16][name]: 239
sections[16][value]: 239
sections[17][name]: 238
sections[17][value]: 238
sections[18][name]: 124
sections[18][value]: 124
sections[19][name]: 242
sections[19][value]: 242
sections[20][name]: 179
sections[20][value]: 179
sections[21][name]: 1246
sections[21][value]: 1246
sections[22][name]: 1264
sections[22][value]: 1264
sections[23][name]: 1263
sections[23][value]: 1263
sections[24][name]: 1245
sections[24][value]: 1245
sections[25][name]: 1262
sections[25][value]: 1262
sections[26][name]: 1261
sections[26][value]: 1261
sections[27][name]: 1244
sections[27][value]: 1244
sections[28][name]: 1260
sections[28][value]: 1260
sections[29][name]: 1259
sections[29][value]: 1259
sections[30][name]: 1243
sections[30][value]: 1243
sections[31][name]: 1258
sections[31][value]: 1258
sections[32][name]: 1257
sections[32][value]: 1257