fixed once again logpoint

This commit is contained in:
piair 2022-02-09 11:43:53 +01:00
parent 8f442e73f1
commit 32b8d757da

3
V4.py
View File

@ -644,7 +644,7 @@ def LogPoint(account="unknown"): #log des points sur discord
regex1 = "<a href=\"https://rewards\.bing\.com/\" title=\"((.{1,3}),(.{1,3})) points\" target=\"_blank\"" regex1 = "<a href=\"https://rewards\.bing\.com/\" title=\"((.{1,3}),(.{1,3})) points\" target=\"_blank\""
try : try :
point = search(regex1, driver.page_source)[1] point = search(regex1, driver.page_source)[1].replace(',', '')
except Exception as e : except Exception as e :
print(e) print(e)
@ -706,6 +706,7 @@ def Fidelité():
def CheckPoint():# a fix, ne marche pas dans 80% des cas def CheckPoint():# a fix, ne marche pas dans 80% des cas
#pas appelé aujourd'hui
driver.get("https://rewards.microsoft.com/pointsbreakdown") driver.get("https://rewards.microsoft.com/pointsbreakdown")
txt = driver.page_source txt = driver.page_source
pc = search('([0-9][0-9]|[0-9])</b> / 90',txt) pc = search('([0-9][0-9]|[0-9])</b> / 90',txt)