You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to https://keyauth.cc/app/ and click the Python tab. Copy that code and replace the existing keyauthapp instance in this file.
If you get an error saying it can't find module KeyAuth, try following this https://github.com/KeyAuth/KeyAuth-Python-Example#how-to-compile
If that doesn't work for you, you can paste the contents of KeyAuth.py ABOVE this comment and then remove the "from keyauth import api" and that should work too.
READ HERE TO LEARN ABOUT KEYAUTH FUNCTIONS https://github.com/KeyAuth/KeyAuth-Python-Example#keyauthapp-instance-definition
'''
fromkeyauthimportapi
importsys
importtime
importplatform
importos
importhashlib
fromtimeimportsleep
fromdatetimeimportdatetime
# import json as jsond
# ^^ only for auto login/json writing/reading
# watch setup video if you need help https://www.youtube.com/watch?v=L2eAQOmuUiA
defclear():
ifplatform.system() =='Windows':
os.system('cls & title Python Example') # clear console, change title
elifplatform.system() =='Linux':
os.system('clear') # clear console
sys.stdout.write("\x1b]0;Python Example\x07") # change title