args.auth, geo_key=args.geo_key ) # Authenticate with a given location # Location is not inherent in authentication # But is important to session session = poko_session.authenticate(args.location) # Time to show off what we can do if session: trainer = Trainer(session) # General trainer.getProfile() trainer.getInventory() # Pokemon related pokemon = trainer.findBestPokemon() trainer.walkAndCatch(pokemon) # Pokestop related fort = trainer.findClosestFort() trainer.walkAndSpin(fort) # see Trainer.simpleBot() for logical usecases # eg. trainer.simpleBot(poko_session) else: logging.critical('Session not created successfully')