fixed once again logpoint
This commit is contained in:
parent
8f442e73f1
commit
32b8d757da
5
V4.py
5
V4.py
@ -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)
|
||||||
@ -705,7 +705,8 @@ def Fidelité():
|
|||||||
LogError("Fidélité" + str(e))
|
LogError("Fidélité" + str(e))
|
||||||
|
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user