Skip to content

Instantly share code, notes, and snippets.

@a-moss
Last active August 18, 2016 03:34
Show Gist options
  • Save a-moss/a5553345d5571beeaa8fc734643195ba to your computer and use it in GitHub Desktop.
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
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