from async_accountdbsql import set_account_db_args, db_set_system_id from behaviours import beh_aggressive_bag_cleaning, discard_all_pokemon from catchmanager import CatchManager, CatchConditions from common_accountmanager import OutOfAccounts from getmapobjects import is_discardable, is_starter_pokemon, catchable_pokemon from management_errors import GaveUp from pogoservice import ApplicationBehaviour, TravelTime2 from pokestoproutesv2 import routes_all from routes.hamburg_xp1 import xp_route_1 from routes.hamburg_xp2 import xp_route_2 from scannerutil import create_forced_update_check, pairwise, write_monocle_accounts_file from stopmanager import StopManager from workermanager import WorkerManager, PositionFeeder from workers import wrap_account_no_replace parser = std_config("levelup_default") add_search_rest(parser) add_use_account_db_true(parser) parser.add_argument( '-system-id', '--system-id', help= 'Define the name of the node that will be used to identify accounts in the account table', default=None) parser.add_argument( '-fsi', '--final-system-id', help= 'Define the name of the node where accounts are transferred upon successful botting', default=None) parser.add_argument(
import logging from async_accountdbsql import set_account_db_args from accounts3 import AsyncAccountManager from argparser import std_config, add_system_id, add_use_account_db, setup_proxies from behaviours import beh_spin_pokestop, beh_spin_pokestop_raw from getmapobjects import inrange_pokstops, catchable_pokemon, \ inventory_discardable_pokemon, inrange_gyms from gymdbsql import set_gymdb_args from scannerutil import install_thread_excepthook, setup_logging from workers import wrap_account_no_replace setup_logging() log = logging.getLogger(__name__) parser = std_config("gymscanner") add_system_id(parser) add_use_account_db(parser) args = parser.parse_args() setup_proxies(args) set_gymdb_args(args) set_account_db_args(args) install_thread_excepthook() args.player_locale = { 'country': 'NO', 'language': 'no', 'timezone': 'Europe/Oslo' } '''
gyms ''' print(inspect.getfile( inspect.currentframe())) # script filename (usually with path) print(os.path.dirname(os.path.abspath(inspect.getfile( inspect.currentframe())))) # script directory location_fences = get_geofences("location_fences.txt", None) cannot_be_seen_when_shadowbanned = can_not_be_seen() runner_blinds = {} # pprint(data) parser = std_config("raidwatch") parser.add_argument( '-system-id', '--system-id', help= 'Define the name of the node that will be used to identify accounts in the account table', default=None) parser.add_argument( '-uad', '--using-account-db', help= 'Indicates if the application wil enter accounts into account database', default=True) parser.add_argument('-s2g', '--s2-hook', default=None, help='s2 discord hook') parser.add_argument('-asi', '--account-search-interval',
Identify spawnpoints next-list: gyms ''' print(inspect.getfile( inspect.currentframe())) # script filename (usually with path) print(os.path.dirname(os.path.abspath(inspect.getfile( inspect.currentframe())))) # script directory cannot_be_seen_when_shadowbanned = can_not_be_seen() runner_blinds = {} # pprint(data) parser = std_config("fnord") parser.add_argument( '-system-id', '--system-id', help= 'Define the name of the node that will be used to identify accounts in the account table', default=None) parser.add_argument( '-uad', '--using-account-db', help= 'Indicates if the application wil enter accounts into account database', default=True) parser.add_argument('-s2g', '--s2-hook', default=None, help='s2 discord hook') parser.add_argument('-asi', '--account-search-interval',
logging.basicConfig( format='%(asctime)s [%(threadName)12s][%(module)10s][%(levelname)8s] ' + '%(message)s', level=logging.INFO) log = logging.getLogger(__name__) logging.getLogger("pgoapi").setLevel(logging.WARN) logging.getLogger("connectionpool").setLevel(logging.WARN) logging.getLogger("Account").setLevel(logging.INFO) ''' Schema changes: alter table gymmember add column first_seen datetime null; alter table gymmember add column last_no_present datetime null; ''' parser = std_config("gymwatcher") add_geofence(parser) parser.add_argument('-c', '--crooks', help='Crooks', action='append', default=[]) args = parser.parse_args() load_proxies(args) set_args(args) set_account_db_args(args) install_thread_excepthook() sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
from accounts import AccountManager, OutOfAccounts from argparser import std_config, load_proxies, location, add_webhooks, add_search_rest, add_threads_per_proxy, \ add_system_id, add_use_account_db from common_blindcheck import check_worker from getmapobjects import can_not_be_seen from gymdbsql import set_args from inventory import egg_count, lure_count from management_errors import GaveUp from pogom.fnord_altitude import with_gmaps_altitude from scannerutil import setup_logging from workers import wrap_account_no_replace setup_logging() log = logging.getLogger(__name__) parser = std_config("blind_check") add_webhooks(parser) add_search_rest(parser) add_threads_per_proxy(parser) add_system_id(parser) add_use_account_db(parser) parser.add_argument( '-lo', '--login-only', action='store_true', default=False, help= 'Login enough to find warning status, tempban status, level and inventory (but not shadowban)' ) args = parser.parse_args()
from argparser import std_config, add_threads_per_proxy, add_webhooks, add_search_rest, add_system_id, \ add_use_account_db parser = std_config("accountmanager") add_threads_per_proxy(parser, 2) add_webhooks(parser) add_search_rest(parser) add_system_id(parser) add_use_account_db(parser) parser.add_argument('-force', '--force-system-id', help='Force the accounts to the system id regardless of previous value', default=False) parser.add_argument('-sa', '--skip-assigned',action='store_true', default=False, help='Skip loading account that already exist') parser.add_argument('-lg', '--login', action='store_true', default=False, help='Login enough to find level and inventory (but not shadowban)') parser.add_argument('-nlg', '--no-login', action='store_true', default=False, help='Dont login, only allocate') parser.add_argument('-lvl', '--level', default=30, help='Level of the loaded accounts (meaningless with --login)') parser.add_argument('-owlvl', '--overwrite-level', default=False, help='Force accounts to the supplied level') parser.add_argument('-ad', '--allocation-duration', default=None, help='If set, the accounts will be allocated from now() and the specified number of hours') parser.add_argument('-mlvl', '--min-level', default=20, help='Level of the loaded accounts') parser.add_argument('-minl', '--max-level', default=40, help='Level of the loaded accounts') parser.add_argument('-n', '--count', default=3, help='The number of accounts')
logging.basicConfig( format='%(asctime)s [%(threadName)12s][%(module)10s][%(levelname)8s] ' + '%(message)s', level=logging.INFO) log = logging.getLogger(__name__) logging.getLogger("pgoapi").setLevel(logging.WARN) logging.getLogger("connectionpool").setLevel(logging.WARN) logging.getLogger("Account").setLevel(logging.INFO) ''' Schema changes: alter table gymmember add column first_seen datetime null; alter table gymmember add column last_no_present datetime null; alter table gym add column gymscanner smallint null; ''' parser = std_config("generic_feeder") add_search_rest(parser) add_webhooks(parser) parser.add_argument('-llocs', '--lowfeed-locations', type=parse_unicode, default=[], help='Location, can be an address or coordinates.') parser.add_argument('-locs', '--locations', type=parse_unicode, default=[], help='Location, can be an address or coordinates.') parser.add_argument('-hlocs', '--heavy-locations', type=parse_unicode,
from geography import * from gymdbsql import set_args, pokestops from luredbsql import set_lure_db_args, lures, db_move_to_levelup, db_move_to_trash from lureworker import LureWorker, FileLureCounter, DbLureCounter from pogom.apiRequests import set_goman_hash_endpoint from pogom.fnord_altitude import with_gmaps_altitude from pogom.proxy import check_proxies from scannerutil import install_thread_excepthook, chunks, stop_at_datetime, start_at_datetime, is_blank, setup_logging ''' Schema changes: alter table gymmember add column first_seen datetime null; alter table gymmember add column last_no_present datetime null; alter table gym add column gymscanner smallint null; ''' parser = std_config("std_lureparty") add_search_rest(parser) add_webhooks(parser) add_geofence(parser) parser.add_argument('-ps', '--pokestops', default=None, action='append', help='Pokestops to lure') parser.add_argument('-jlo', '--json-locations', type=parse_unicode, help='Json file with luring descriptions') parser.add_argument('-rl', '--route-length', default=5, help='Length of the luring routes to use') parser.add_argument('-ow', '--system-id', type=parse_unicode, help='Database owner of lures') parser.add_argument('-bn', '--base-name', default=None, action='append', help='Base name(s) of accounts for branding') parser.add_argument('-nl', '--num-lures', default=24, help='Number of lures to place before exiting')
from aiohttp import web import aiohttp import asyncio import async_timeout from argparser import std_config, add_use_account_db_true, add_webhooks parser = std_config("scouthook") add_use_account_db_true(parser) parser.add_argument( '-system-id', '--system-id', help= 'Define the name of the node that will be used to identify accounts in the account table', default=None) add_webhooks(parser) args = parser.parse_args() target = args.webhooks async def handle_post(request): data = await request.json() scouted = do_scout(data) update_data(data, scouted) respose_text = await send_to_pa(scouted) return web.Response(text=respose_text) async def post(session, url, data): with async_timeout.timeout(10): async with session.post(url, data=data) as response: return await response.text()