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
'''
fromhashlibimportmd5
fromkeyauthimportapi
importdatetime, os
defget_checksum():
"""
getting working main file file name ``stack()[1].filename``
Calculate and return the MD5 checksum of the file specified in argv.
"""
try:
'''
you can simply put your filename like that :
with open('main.py, "rb") as file
'''
withopen(__file__.split('\\')[-1], "rb") asfile: # You can Use argv[1:] to avoid including the script name