mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-10-31 14:23:53 +01:00 
			
		
		
		
	sometime it's in english for whatever reason
This commit is contained in:
		
							
								
								
									
										10
									
								
								V4.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								V4.py
									
									
									
									
									
								
							| @@ -141,14 +141,24 @@ def check_ipv4(): | ||||
| def claim_amazon(): #only work in french for now | ||||
|     try :  | ||||
|         driver.get("https://rewards.microsoft.com/redeem/000803000031") | ||||
|         try : | ||||
|             driver.find_element(By.XPATH, "//span[contains( text( ), 'ÉCHANGER UNE RÉCOMPENSE')]").click() | ||||
|         except : | ||||
|             driver.find_element(By.XPATH, "//span[contains( text( ), 'REDEEM REWARD')]").click() | ||||
|         sleep(5) | ||||
|         try :  | ||||
|             driver.find_element(By.XPATH, "//span[contains( text( ), 'CONFIRMER LA RÉCOMPENSE')]").click() | ||||
|         except : | ||||
|             driver.find_element(By.XPATH, "//span[contains( text( ), 'CONFIRMER LA RÉCOMPENSE')]").click() | ||||
|  | ||||
|         sleep(5) | ||||
|  | ||||
|         if ("/rewards/redeem/orderhistory" in driver.page_source) : | ||||
|             driver.get("https://rewards.microsoft.com/redeem/orderhistory") | ||||
|             try : | ||||
|                 driver.find_element(By.XPATH, "//span[contains( text( ), 'Détails de la commande')]").click() | ||||
|             except : | ||||
|                 driver.find_element(By.XPATH, "//span[contains( text( ), 'Get code')]").click() | ||||
|             sleep(5) | ||||
|             code = driver.find_element(By.CLASS_NAME, "tango-credential-value").get_attribute('innerHTML') | ||||
|             lien = driver.find_elements(By.CLASS_NAME, "tango-credential-key")[1].get_attribute('innerHTML') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user