Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- value= []
- model = []
- selectModl = Select(modl)
- dropdown_options = selectModl.options
- for option in dropdown_options[1:]:
- value.append(option.get_attribute('value'))
- model.append(option.text)
- dic = zip(itertools.repeat(carMake), value, model)
- dic = list(dic)
- # try:
- # conn = sqlite3.connect(dbPath)
- # print("Get Makes " + sqlite3.version)
- # c = conn.cursor()
- # except Error as e:
- # print(e)
- #
- # # Insert new Data into table Makes
- # c.execute("INSERT INTO Models VALUES(NULL,?,?,?) ", dic)
- # conn.commit()
- # c.close()
- # conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement