NOTE: I am new to this community, so please let me know if I can help you help me!
I built a scraper in python that creates a tuple of (key, value).
I would like to pass both key and value as parameterized variables in an SQL query that updates a table in my sqlite database.
I have exhausted researching online and trial and error and hope you guys can help. Is this even possible?
Example of what I want to achieve:
cur.execute(''' UPDATE Ads SET ?=?''', (tup.keys(),tup.values()))
Columns in my SQLite3 database (identical to tuple.keys() ):
Marke, Kilometerstand, Erstzulassung, Kraftstoffart, Leistung (PS), Getriebe
Example of my tuple:
{'Marke': 'Weitere Automarken', 'Kilometerstand': '88.888 km', 'Erstzulassung': 'Juli 1963', 'Kraftstoffart': 'Diesel', 'Leistung (PS)': '69 PS', 'Getriebe': 'Manuell'}