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())
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())
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())
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())
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'
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'