try to catch an error that append in the first account
This commit is contained in:
parent
1ce5a182e5
commit
7da5bf2a80
37
V4.py
37
V4.py
|
@ -394,7 +394,8 @@ def AllCard(): # fonction qui clique sur les cartes
|
||||||
dailyCards()
|
dailyCards()
|
||||||
except:
|
except:
|
||||||
printf("erreur ici")
|
printf("erreur ici")
|
||||||
try:
|
|
||||||
|
def weekly_cards() :
|
||||||
try:
|
try:
|
||||||
driver.find_element(
|
driver.find_element(
|
||||||
By.XPATH, "/html/body/div/div/div[3]/div[2]/div[2]/div[2]/div[1]"
|
By.XPATH, "/html/body/div/div/div[3]/div[2]/div[2]/div[2]/div[1]"
|
||||||
|
@ -428,8 +429,16 @@ def AllCard(): # fonction qui clique sur les cartes
|
||||||
] # verifie si on a toujours des cartes
|
] # verifie si on a toujours des cartes
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
except Exception as e:
|
for i in range(3) :
|
||||||
LogError(f"2eme partie de AllCard (weekly card)\n {e}")
|
try :
|
||||||
|
weekly_cards()
|
||||||
|
except Exception as e:
|
||||||
|
LogError(f"weekly_cards, try n°{i} \n {e}")
|
||||||
|
if i == 0 :
|
||||||
|
driver.refresh()
|
||||||
|
else :
|
||||||
|
CustomSleep(1800)
|
||||||
|
driver.refresh()
|
||||||
|
|
||||||
|
|
||||||
def send_keys_wait(element, keys):
|
def send_keys_wait(element, keys):
|
||||||
|
@ -821,26 +830,30 @@ def CheckPoint(): # a fix, ne marche pas dans 80% des cas, pas appelé aujourd
|
||||||
|
|
||||||
|
|
||||||
def DailyRoutine():
|
def DailyRoutine():
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
BingMobileSearch()
|
||||||
|
except Exception as e:
|
||||||
|
LogError(f"DalyRoutine - BingMobileSearch - {e}")
|
||||||
|
print("\n")
|
||||||
|
CustomSleep(uniform(3, 20))
|
||||||
|
|
||||||
MainWindows = login()
|
MainWindows = login()
|
||||||
try:
|
try:
|
||||||
AllCard()
|
AllCard()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LogError(
|
LogError(
|
||||||
f"pas normal sauf si relancer a la main, juste pour les recherches bing (DalyRoutine -> AllCard) \n {e}"
|
f"DalyRoutine - AllCard - \n {e}"
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
BingPcSearch()
|
BingPcSearch()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LogError(f"il y a eu une erreur dans BingPcSearch, {e}")
|
LogError(f"DalyRoutine - BingPcSearch - \n {e}")
|
||||||
CustomSleep(uniform(3, 20))
|
CustomSleep(uniform(3, 20))
|
||||||
|
|
||||||
try:
|
|
||||||
BingMobileSearch()
|
|
||||||
except Exception as e:
|
|
||||||
LogError(f"BingMobileSearch - {e}")
|
|
||||||
print("\n")
|
|
||||||
CustomSleep(uniform(3, 20))
|
|
||||||
try:
|
try:
|
||||||
Fidelite()
|
Fidelite()
|
||||||
except:
|
except:
|
||||||
|
@ -849,7 +862,7 @@ def DailyRoutine():
|
||||||
try:
|
try:
|
||||||
LogPoint(_mail)
|
LogPoint(_mail)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LogError(f"LogPoint : {e}")
|
LogError(f"DalyRoutine - LogPoint - \n{e}")
|
||||||
|
|
||||||
|
|
||||||
def close():
|
def close():
|
||||||
|
|
11
config
11
config
|
@ -1,3 +1,7 @@
|
||||||
|
from logging import root
|
||||||
|
from requests import NullHandler
|
||||||
|
|
||||||
|
|
||||||
[PATH]
|
[PATH]
|
||||||
|
|
||||||
motpath = /your/path/to/words_list.txt
|
motpath = /your/path/to/words_list.txt
|
||||||
|
@ -19,3 +23,10 @@ errorlink =https://discord.com/api/webhooks/[put your webhook here]
|
||||||
enabled = False
|
enabled = False
|
||||||
url = Null
|
url = Null
|
||||||
port = 0
|
port = 0
|
||||||
|
|
||||||
|
[DATABASE]
|
||||||
|
enabled = False
|
||||||
|
url = Null
|
||||||
|
port = 0
|
||||||
|
user = root
|
||||||
|
password = password
|
Loading…
Reference in New Issue