forked from Silias-Public/Sonnendach
Spaltenindex geändert.
This commit is contained in:
parent
427f21e41d
commit
e382bc1c1f
8
Main.py
8
Main.py
|
@ -31,7 +31,7 @@ def search_adresses(adress_list, filename_adresslist, driver):
|
||||||
adress = line.split(file_split_char)
|
adress = line.split(file_split_char)
|
||||||
if((line != adress_list[0]) & ((adress[20][0:11] != "screenshots"))):
|
if((line != adress_list[0]) & ((adress[20][0:11] != "screenshots"))):
|
||||||
print(adress)
|
print(adress)
|
||||||
search_string = adress[15] + " " + adress[3] + " " + adress[11] + " " + adress[13]
|
search_string = adress[8] + " " + adress[27] + " " + adress[29]
|
||||||
search_bar = driver.find_element(By.ID, "searchTypeahead1")
|
search_bar = driver.find_element(By.ID, "searchTypeahead1")
|
||||||
search_bar.send_keys(Keys.CONTROL + "a")
|
search_bar.send_keys(Keys.CONTROL + "a")
|
||||||
search_bar.send_keys(Keys.DELETE)
|
search_bar.send_keys(Keys.DELETE)
|
||||||
|
@ -54,9 +54,9 @@ def search_adresses(adress_list, filename_adresslist, driver):
|
||||||
eignung = driver.find_element(By.ID, "eignung")
|
eignung = driver.find_element(By.ID, "eignung")
|
||||||
image_filename = "screenshots/" + eignung.text + " - " + search_string + ".png"
|
image_filename = "screenshots/" + eignung.text + " - " + search_string + ".png"
|
||||||
|
|
||||||
adress[18] = url
|
adress[14] = url
|
||||||
adress[19] = eignung.text
|
adress[11] = eignung.text
|
||||||
adress[20] = image_filename
|
adress[15] = image_filename
|
||||||
|
|
||||||
adress_file = open(filename_adresslist, "w")
|
adress_file = open(filename_adresslist, "w")
|
||||||
new_line_string = ""
|
new_line_string = ""
|
||||||
|
|
Loading…
Reference in New Issue