This commit is contained in:
piair 2022-02-23 18:00:36 +01:00
parent 4245464fff
commit 6cedec4982
1 changed files with 5 additions and 2 deletions

7
V4.py
View File

@ -34,7 +34,7 @@ Log = args.log
FullLog = args.fulllog FullLog = args.fulllog
IsLinux = platform == "linux" IsLinux = platform == "linux"
print("Linux : "+ str(IsLinux))
if not IsLinux : if not IsLinux :
system("") #enable colors in cmd system("") #enable colors in cmd
@ -199,10 +199,13 @@ def PlayQuiz2(override = 10):
txt = driver.page_source txt = driver.page_source
secret = search('IG:\"([^\"]+)\"', txt)[1] #variable dans la page, pour calculer le offset secret = search('IG:\"([^\"]+)\"', txt)[1] #variable dans la page, pour calculer le offset
print(secret)
reponse1 = search("data-option=\"([^\"]+)\"", txt)[1] reponse1 = search("data-option=\"([^\"]+)\"", txt)[1]
print(reponse1)
offset = int(secret[-2:],16) # la conversion ec decimal des deux dernier caracteres de IG offset = int(secret[-2:],16) # la conversion ec decimal des deux dernier caracteres de IG
print(offset)
reponse = search("correctAnswer\":\"([0-9]+)", txt)[1] reponse = search("correctAnswer\":\"([0-9]+)", txt)[1]
print(secret, reponse,offset , reponse1) print(reponse)
somme = 0 somme = 0
for i in reponse1 : for i in reponse1 :