Skip to content

Instantly share code, notes, and snippets.

View a-moss's full-sized avatar

Aaron a-moss

View GitHub Profile
import cfscrape
import json
import sys
import argparse
import requests
import logging
import time
import random
import urllib2
from pgoapi import PGoApi
@a-moss
a-moss / Pokemon Go Banned Accounts
Last active August 18, 2016 03:34
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!')