Last active
August 18, 2016 03:34
-
-
Save a-moss/a5553345d5571beeaa8fc734643195ba to your computer and use it in GitHub Desktop.
Mini function to check if a PTC Pokemon Go account is banned
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_banned(username, password): | |
api = PGoApi() | |
api.set_position(40.7127837, -74.005941, 0.0) | |
api.login('ptc', username, password) | |
time.sleep(2) | |
req = api.create_request() | |
req.get_inventory() | |
response = req.call() | |
if response['status_code'] == 3: print('The following account is banned: {}'.format(username)) | |
else: print('Not banned!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment