def is_blind(acc): # We don't know if we did not search/find ANY Pokemon if not acc.seen_pokemon: return None return acc.rareless_scans != 0 def log_results(key): if acc_stats[key]: log.info("{:7}: {}".format(key.upper(), acc_stats[key])) # =========================================================================== cfg_init(shadowcheck=True) log.info("PGNumbra ShadowCheck starting up.") # Delete result files. remove_account_file('good') remove_account_file('blind') remove_account_file('captcha') remove_account_file('banned') remove_account_file('error') if os.path.isfile(ACC_INFO_FILE): os.remove(ACC_INFO_FILE) init_proxies()
level=logging.INFO, format= '%(asctime)s [%(threadName)16s][%(module)14s][%(levelname)8s] %(message)s') log = logging.getLogger(__name__) # Silence some loggers logging.getLogger('pgoapi').setLevel(logging.WARNING) scanners = [] # =========================================================================== log.info("PGNumbra CompareScans starting up.") cfg_init() lat = cfg_get('latitude') lng = cfg_get('longitude') if not cfg_get('accounts_file'): log.error("Comparing accounts only works with --accounts-file.") sys.exit(1) init_proxies() accounts = load_accounts_file() for acc in accounts: t = Thread(target=acc.run) t.daemon = True