Code: Alles auswählen
Traceback (most recent call last):
File "/home/unixben/Development/python/scrape/domain/mysqlsave.py", line 29, in <module>
cursor.execute("INSERT INTO tbl_domain_com (hash_url, link_url, name, stadt_ort, img_url) VALUES ('%s','%s','%s','%s','%s')" % daten)
TypeError: not enough arguments for format string
Code: Alles auswählen
daten = list()
file = open("temp_data.txt","r")
for line in file:
daten.append(line.strip().split(","))
file.close()
cursor.execute("INSERT INTO tbl_domain_com (hash_url, link_url, name, stadt_ort, img_url) VALUES ('%s','%s','%s','%s','%s')" % daten)
conn.commit()
conn.close()