oui:/
This commit is contained in:
parent
cfbe5d7af8
commit
3770fa6451
6
V4.py
6
V4.py
@ -40,8 +40,6 @@ def WaitUntilVisible(by, id, to = 20, browser = driver):
|
|||||||
def claim(auto = True, reward = "amazon"):
|
def claim(auto = True, reward = "amazon"):
|
||||||
dic_id = {"amazon" : "000803000031", "RP" : "000403000103", "fnac" : ""}
|
dic_id = {"amazon" : "000803000031", "RP" : "000403000103", "fnac" : ""}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def number_verification():
|
def number_verification():
|
||||||
countrycode = driver.find_element(By.ID, 'redeem-checkout-challenge-countrycode')
|
countrycode = driver.find_element(By.ID, 'redeem-checkout-challenge-countrycode')
|
||||||
phone = driver.find_element(By.ID, "redeem-checkout-challenge-fullnumber")
|
phone = driver.find_element(By.ID, "redeem-checkout-challenge-fullnumber")
|
||||||
@ -89,8 +87,8 @@ def claim(auto = True, reward = "amazon"):
|
|||||||
sleep(5)
|
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")
|
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 :
|
if fcode :
|
||||||
webhookSuccess.send(_mail)
|
webhookFailure.send(_mail)
|
||||||
webhookSuccess.send(fcode)
|
webhookFailure.send(fcode)
|
||||||
return(1)
|
return(1)
|
||||||
else :
|
else :
|
||||||
LogError("impossible de localiser le code ", driver, _mail)
|
LogError("impossible de localiser le code ", driver, _mail)
|
||||||
|
2
V5.py
2
V5.py
@ -39,7 +39,7 @@ def printf(e, f = ""):
|
|||||||
# remove points from database when a reward is claimed
|
# remove points from database when a reward is claimed
|
||||||
# remove the auto-claim feature as it seams to create huge risk of ban
|
# 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
|
# 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
|
custom_sleep = CustomSleep
|
||||||
|
|
||||||
# Wait for the presence of the element identifier or [timeout]s
|
# Wait for the presence of the element identifier or [timeout]s
|
||||||
|
Loading…
Reference in New Issue
Block a user