Beispiel #1
0
def main():
    if platform.system() == 'Windows':
        os.system("title Pokemon GO API Python")
        os.system("cls")
    else:
        # Catches "Lunux" and "Darwin" (OSX), among others
        os.system("clear")
    parser = argparse.ArgumentParser()
    parser.add_argument("-u", "--username", help="Login", default=None)
    parser.add_argument("-p", "--password", help="Password", default=None)
    parser.add_argument("-t", "--type", help="Google/PTC", required=True)
    parser.add_argument("-l", "--location", help="Location", required=True)
    #parser.add_argument("-d", "--distance", help="Distance", required=True)
    args = parser.parse_args()
    if not args.username:
        args.username = getpass("Username: "******"Password: "******"%s" only Google or PTC valid' % (
            args.type.lower())
Beispiel #2
0
def main():
    if platform.system() == "Windows":
        os.system("title Pokemon GO API Python")
        os.system("cls")
    else:
        # Catches "Lunux" and "Darwin" (OSX), among others
        os.system("clear")
    parser = argparse.ArgumentParser()
    parser.add_argument("-u", "--username", help="Login", default=None)
    parser.add_argument("-p", "--password", help="Password", default=None)
    parser.add_argument("-t", "--type", help="Google/PTC", required=True)
    parser.add_argument("-l", "--location", help="Location", required=True)
    # parser.add_argument("-d", "--distance", help="Distance", required=True)
    args = parser.parse_args()
    if not args.username:
        args.username = getpass("Username: "******"Password: "******"ptc" in args.type.lower() or "goo" in args.type.lower():
        # config.distance=args.distance
        access_token, ltype = get_acces_token(args.username, args.password, args.type.lower())
        if access_token is not None:
            if config.debug:
                print "[!] using:", config.pub
            if config.pub:
                public.start_work(access_token, ltype, args.location)
            else:
                dirty.start_private_show(access_token, ltype, args.location)
        else:
            print "[-] access_token bad"
    else:
        print '[!] used type "%s" only Google or PTC valid' % (args.type.lower())
Beispiel #3
0
def main():
	if 'nux' not in platform.system():
		os.system("title Pokemon GO API Python")
		os.system("cls")
	else:
		os.system("clear")
	parser = argparse.ArgumentParser()
	parser.add_argument("-u", "--username", help="Login", default=None)
	parser.add_argument("-p", "--password", help="Password", default=None)
	parser.add_argument("-t", "--type", help="Google/PTC", required=True)
	parser.add_argument("-l", "--location", help="Location", required=True)
	parser.add_argument("-d", "--distance", help="Distance", required=True)
	args = parser.parse_args()
	if not args.username:
		args.username = getpass("Username: "******"Password: "******"%s" only Google or PTC valid'%(args.type.lower())
Beispiel #4
0
def main():
	if platform.system() == 'Windows':
		os.system("title Pokemon GO API Python")
		os.system("cls")
	else:
		# Catches "Linux" and "Darwin" (OSX)
		os.system("clear")
	parser = argparse.ArgumentParser()
	parser.add_argument("-u", "--username", help="Login", required=True)
	parser.add_argument("-p", "--password", help="Password", default=None)
	parser.add_argument("-t", "--type", help="Google/PTC", required=True)
	args = parser.parse_args()
	if not args.password:
		args.password = getpass("Google/PTC Password: "******"%s" only Google or PTC valid'%(args.type.lower())
Beispiel #5
0
def main():
	if platform.system() == 'Windows':
		os.system("title Pokemon GO API Python")
		os.system("cls")
	else:
		# Catches "Lunux" and "Darwin" (OSX), among others
		os.system("clear")
	parser = argparse.ArgumentParser()
	parser.add_argument("-u", "--username", help="Login", default=None)
	parser.add_argument("-p", "--password", help="Password", default=None)
	parser.add_argument("-t", "--type", help="Google/PTC", required=True)
	parser.add_argument("-l", "--location", help="Location", required=True)
	#parser.add_argument("-d", "--distance", help="Distance", required=True)
	dirty.argsStored = parser.parse_args()
	if not dirty.argsStored.username:
		dirty.argsStored.username = getpass("Username: "******"Password: "******"%s" only Google or PTC valid'%(dirty.argsStored.type.lower())
Beispiel #6
0
def main():
	access_token,ltype=get_acces_token()
	if access_token is not None:
		print '[!] using:',config.pub
		if config.pub:
			public.start_work(access_token,ltype)
		else:
			dirty.start_private_show(access_token,ltype)
	else:
		print '[-] access_token bad'
Beispiel #7
0
def start(args):
	access_token,ltype=get_acces_token(args.username,args.password,args.type.lower())
	if access_token is not None:
		try:
			dirty.start_private_show(access_token,ltype,args.location)
		except:
			print '[!] error, start again'
			sys.stdout.flush()
			os.execl(sys.executable, sys.executable, *sys.argv)
	else:
		print '[-] access_token bad'
Beispiel #8
0
def main():

	poke_type = os.environ.get('POKE_TYPE', None)
	poke_username = os.environ.get('POKE_USERNAME', None)
	poke_password = os.environ.get('POKE_PASSWORD', None)
	poke_location = os.environ.get('POKE_LOCATION', None)
	print poke_location
	access_token, ltype = get_acces_token(poke_username, poke_password, poke_type)
	if access_token is not None:
		if config.debug:
			print '[!] using:',config.pub
		if config.pub:
			public.start_work(access_token,ltype, poke_location)
		else:
			dirty.start_private_show(access_token,ltype, poke_location)
	else:
		print '[-] access_token bad'