ui
This commit is contained in:
parent
4245464fff
commit
6cedec4982
7
V4.py
7
V4.py
@ -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 :
|
||||||
|
Loading…
Reference in New Issue
Block a user