fallback fidelité

This commit is contained in:
piair 2022-06-09 14:36:51 +02:00
parent 5614a06f38
commit b7f3bd053a

8
V4.py
View File

@ -895,8 +895,12 @@ def Fidelite():
if (lien.split(":")[0] == "https") or (lien.split(":")[0] == "http") : if (lien.split(":")[0] == "https") or (lien.split(":")[0] == "http") :
driver.get(lien) driver.get(lien)
sleep(2) CustomSleep(5)
choix = driver.find_element(By.CSS_SELECTOR, 'div[class="pull-left spacer-48-bottom punchcard-row"]') # pull-left spacer-48-bottom punchcard-row? USELESS ? try :
choix = driver.find_element(By.CSS_SELECTOR, 'div[class="pull-left spacer-48-bottom punchcard-row"]') # pull-left spacer-48-bottom punchcard-row? USELESS ?
except :
CustomSleep(300)
choix = driver.find_element(By.CSS_SELECTOR, 'div[class="pull-left spacer-48-bottom punchcard-row"]') # pull-left spacer-48-bottom punchcard-row? USELESS ?
nb = search("([0-9]) of ([0-9]) completed", driver.page_source) nb = search("([0-9]) of ([0-9]) completed", driver.page_source)
if not nb: if not nb: