Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. value= []
  2.     model = []
  3.     selectModl = Select(modl)
  4.     dropdown_options = selectModl.options
  5.     for option in dropdown_options[1:]:
  6.         value.append(option.get_attribute('value'))
  7.         model.append(option.text)
  8.  
  9.     dic = zip(itertools.repeat(carMake), value, model)
  10.     dic = list(dic)
  11.  
  12.  
  13.     # try:
  14.     #     conn = sqlite3.connect(dbPath)
  15.     #     print("Get Makes " + sqlite3.version)
  16.     #     c = conn.cursor()
  17.     # except Error as e:
  18.     #     print(e)
  19.     #
  20.     # # Insert new Data into table Makes
  21.     # c.execute("INSERT INTO Models VALUES(NULL,?,?,?) ", dic)
  22.     # conn.commit()
  23.     # c.close()
  24.     # conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement