je suis un pro des regexp mdrr
This commit is contained in:
parent
141e896cab
commit
08c069ca1e
8
V4.py
8
V4.py
@ -642,10 +642,12 @@ def Fidelite():
|
|||||||
choix = driver.find_element(By.CSS_SELECTOR, 'div[class="pull-left spacer-48-bottom punchcard-row"]') # pull-left spacer-48-bottom punchcard-row? USELESS ?
|
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 nb is None:
|
||||||
nb = search("([0-9]) de ([0-9]) finalisé", driver.page_source)
|
nb = search("([0-9]) de ([0-9]) finalisé", driver.page_source)
|
||||||
if not nb :
|
if nb is None :
|
||||||
search("([0-9]) licence(s) sur ([0-9]) disponible(s)", driver.page_source)
|
nb = search("([0-9]) licence\(s\) sur ([0-9]) disponible\(s\)", driver.page_source)
|
||||||
|
if nb is None :
|
||||||
|
nb = [0,0,0]
|
||||||
for i in range(int(nb[2]) - int(nb[1])):
|
for i in range(int(nb[2]) - int(nb[1])):
|
||||||
driver.refresh()
|
driver.refresh()
|
||||||
CustomSleep(2)
|
CustomSleep(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user