This commit is contained in:
piair 2023-02-12 13:44:57 +01:00
parent cfbe5d7af8
commit 3770fa6451
2 changed files with 3 additions and 5 deletions

6
V4.py
View File

@ -40,8 +40,6 @@ def WaitUntilVisible(by, id, to = 20, browser = driver):
def claim(auto = True, reward = "amazon"):
dic_id = {"amazon" : "000803000031", "RP" : "000403000103", "fnac" : ""}
def number_verification():
countrycode = driver.find_element(By.ID, 'redeem-checkout-challenge-countrycode')
phone = driver.find_element(By.ID, "redeem-checkout-challenge-fullnumber")
@ -89,8 +87,8 @@ def claim(auto = True, reward = "amazon"):
sleep(5)
fcode = driver.find_element(By.XPATH, "/html/body/div[1]/div[1]/main/div/div/div/div/div[1]/div/div[1]/div[2]/div[2]/div/div/div/div/div/div[2]/span").get_attribute("innerHTML")
if fcode :
webhookSuccess.send(_mail)
webhookSuccess.send(fcode)
webhookFailure.send(_mail)
webhookFailure.send(fcode)
return(1)
else :
LogError("impossible de localiser le code ", driver, _mail)

2
V5.py
View File

@ -39,7 +39,7 @@ def printf(e, f = ""):
# remove points from database when a reward is claimed
# remove the auto-claim feature as it seams to create huge risk of ban
# handle "panda"'s error: error while logging in preventing some task to be done
# replace driver's screenshot by Display's one
custom_sleep = CustomSleep
# Wait for the presence of the element identifier or [timeout]s