Ignoring MS Security activity (it would be better to detect it before clicking)

This commit is contained in:
augustin64 2024-10-01 09:03:50 +02:00
parent 2721c76686
commit adf91ac8f0
1 changed files with 2 additions and 0 deletions

2
V6.py
View File

@ -527,6 +527,8 @@ def try_play(nom="unknown", activity=""):
info(f"Explore on bing: {activity}")
explore_on_bing(activity, config)
custom_sleep(uniform(3, 5))
elif "Optimisez votre sécurité avec Microsoft" in driver.page_source:
info("Still not paying Office 365 ?")
else:
info(f"Nothing obvious to do on page `{nom}`.")
custom_sleep(uniform(3, 5))