works now
This commit is contained in:
parent
bb5dbb3cbd
commit
90bcd29d36
18
V4.py
18
V4.py
@ -38,9 +38,6 @@ def WaitUntilVisible(by, id, to = 20, browser = driver):
|
|||||||
|
|
||||||
def claim_amazon(auto = True):
|
def claim_amazon(auto = True):
|
||||||
def middle():
|
def middle():
|
||||||
driver.find_element(By.XPATH, "//span[contains( text( ), 'ÉCHANGER UNE RÉCOMPENSE')]").click()
|
|
||||||
sleep(5)
|
|
||||||
driver.find_element(By.XPATH, "//span[contains( text( ), 'CONFIRMER LA RÉCOMPENSE')]").click()
|
|
||||||
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")
|
||||||
sel = Select(countrycode)
|
sel = Select(countrycode)
|
||||||
@ -49,9 +46,14 @@ def claim_amazon(auto = True):
|
|||||||
ph = input("entrez le numero de telephone : +33")
|
ph = input("entrez le numero de telephone : +33")
|
||||||
send_keys_wait(phone, ph)
|
send_keys_wait(phone, ph)
|
||||||
driver.find_element(By.ID, "redeem-checkout-challenge-validate").click()
|
driver.find_element(By.ID, "redeem-checkout-challenge-validate").click()
|
||||||
|
sleep(5)
|
||||||
|
code = input("entrez le code recu : ")
|
||||||
|
send_keys_wait(driver.find_element(By.ID, "redeem-checkout-challenge-code"), code)
|
||||||
|
driver.find_element(By.ID, "redeem-checkout-challenge-confirm").click()
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
driver.get("https://rewards.bing.com/redeem/000803000031")
|
driver.get("https://rewards.bing.com/redeem/000803000031")
|
||||||
|
sleep(5)
|
||||||
try :
|
try :
|
||||||
driver.find_element(By.XPATH, "//span[contains( text( ), 'ÉCHANGER UNE RÉCOMPENSE')]").click()
|
driver.find_element(By.XPATH, "//span[contains( text( ), 'ÉCHANGER UNE RÉCOMPENSE')]").click()
|
||||||
except :
|
except :
|
||||||
@ -105,6 +107,11 @@ def claim_amazon(auto = True):
|
|||||||
while ("Il existe un problème avec votre compte ou votre commande" in driver.page_source) :
|
while ("Il existe un problème avec votre compte ou votre commande" in driver.page_source) :
|
||||||
print("le numero de telephone est ban")
|
print("le numero de telephone est ban")
|
||||||
driver.get("https://rewards.bing.com/redeem/000803000031")
|
driver.get("https://rewards.bing.com/redeem/000803000031")
|
||||||
|
sleep(5)
|
||||||
|
driver.find_element(By.XPATH, "//span[contains( text( ), 'ÉCHANGER UNE RÉCOMPENSE')]").click()
|
||||||
|
sleep(5)
|
||||||
|
driver.find_element(By.XPATH, "//span[contains( text( ), 'CONFIRMER LA RÉCOMPENSE')]").click()
|
||||||
|
|
||||||
middle()
|
middle()
|
||||||
end()
|
end()
|
||||||
|
|
||||||
@ -983,7 +990,12 @@ if CUSTOM_START:
|
|||||||
elif UNBAN:
|
elif UNBAN:
|
||||||
unban2()
|
unban2()
|
||||||
elif CLAIM:
|
elif CLAIM:
|
||||||
|
global _mail, _password
|
||||||
|
_mail, _password = SelectAccount(False)[0]
|
||||||
|
driver = FirefoxDriver()
|
||||||
|
login()
|
||||||
claim_amazon(False)
|
claim_amazon(False)
|
||||||
|
|
||||||
elif POINTS_FILE != "":
|
elif POINTS_FILE != "":
|
||||||
SavePointsFromFile(POINTS_FILE)
|
SavePointsFromFile(POINTS_FILE)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user