diff --git a/V4.py b/V4.py index 7350f1e..1a3efaf 100755 --- a/V4.py +++ b/V4.py @@ -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) diff --git a/V5.py b/V5.py index 48aeabc..f2407ee 100644 --- a/V5.py +++ b/V5.py @@ -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