out = open("result\\together.csv","w",newline="",encoding="utf-8")
import csv
result = [['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2007', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2007', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 3701CC 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2007', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2007', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 3701CC 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', '65th Anniversary Edition Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '2.8L 2768CC 171Cu. In. l4 DIESEL DOHC Turbocharged', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.8L 2768CC 171Cu. In. l4 DIESEL DOHC Turbocharged', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2006', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '2.8L 2768CC 171Cu. In. l4 DIESEL DOHC Turbocharged', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Rocky Mountain Edition Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.4L 148Cu. In. l4 GAS DOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.8L 2768CC 171Cu. In. l4 DIESEL DOHC Turbocharged', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2005', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2004', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2004', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2004', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.4L 148Cu. In. l4 GAS DOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2004', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2003', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2003', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2003', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.4L 148Cu. In. l4 GAS DOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2003', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2002', 'Jeep', 'Liberty', 'Limited Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2002', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '2.4L 148Cu. In. l4 GAS DOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2002', 'Jeep', 'Liberty', 'Renegade Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2002', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '2.4L 148Cu. In. l4 GAS DOHC Naturally Aspirated', '351701130502'], ['(Factory �rock rails� must be removed if equipped and cannot be reinstalled)', '2002', 'Jeep', 'Liberty', 'Sport Sport Utility 4-Door', '3.7L 226Cu. In. V6 GAS SOHC Naturally Aspirated', '351701130502']]
out = open("result\\1.csv", "w",newline="",encoding="utf-8")
csv_writer = csv.writer(out)
csv_writer.writerow(['fitmentcomment','year','make','model','trim','engine','ebayno'])
sku = "skusku"
for i in range(len(result)):
print(result[i])
row = result[i]
csv_writer.writerow([row[0], row[1], row[2], row[3], row[4], row[5],sku])