From 6cedec4982ec3363b3c7a0952cb22bd86b3ccae7 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 23 Feb 2022 18:00:36 +0100 Subject: [PATCH] ui --- V4.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index b928836..f91edba 100755 --- a/V4.py +++ b/V4.py @@ -34,7 +34,7 @@ Log = args.log FullLog = args.fulllog IsLinux = platform == "linux" -print("Linux : "+ str(IsLinux)) + if not IsLinux : system("") #enable colors in cmd @@ -199,10 +199,13 @@ def PlayQuiz2(override = 10): txt = driver.page_source secret = search('IG:\"([^\"]+)\"', txt)[1] #variable dans la page, pour calculer le offset + print(secret) reponse1 = search("data-option=\"([^\"]+)\"", txt)[1] + print(reponse1) offset = int(secret[-2:],16) # la conversion ec decimal des deux dernier caracteres de IG + print(offset) reponse = search("correctAnswer\":\"([0-9]+)", txt)[1] - print(secret, reponse,offset , reponse1) + print(reponse) somme = 0 for i in reponse1 :