Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.76 KB | None | 0 0
  1. ### All lines that are commented out (and some that aren't) are optional ###
  2.  
  3. DB_ENGINE = 'sqlite:///db.sqlite'
  4. #DB_ENGINE = 'mysql://user:pass@localhost/pokeminer'
  5. #DB_ENGINE = 'postgresql://user:pass@localhost/pokeminer
  6.  
  7. AREA_NAME = 'SELESTAT' # the city or region you are scanning
  8. LANGUAGE = 'FR' # ISO 639-1 codes EN, DE, FR, and ZH for Pokémon names.
  9. MAX_CAPTCHAS = 30 # stop launching new visits if this many CAPTCHAs are pending
  10. SCAN_DELAY = 10 # wait at least this many seconds before scanning with the same account
  11. SPEED_LIMIT = 19 # don't travel over this many miles per hour (sorry non-Americans)
  12.  
  13. # The number of simultaneous workers will be these two numbers multiplied.
  14. # On the initial run, workers will arrange themselves in a grid across the
  15. # rectangle you defined with MAP_START and MAP_END.
  16. # The rows/columns will also be used for the dot grid in the console output.
  17. # Provide more accounts than the product of your grid to allow swapping.
  18. GRID = (5, 7) # rows, columns
  19.  
  20. # the corner points of a rectangle for your workers to spread out over before
  21. # any spawn points have been discovered
  22. MAP_START = (48.274396, 7.428089)
  23. MAP_END = (48.247253, 7.475594)
  24.  
  25. # do not visit spawn points outside of your MAP_START and MAP_END rectangle
  26. # the boundaries will be the rectangle created by MAP_START and MAP_END, unless
  27. STAY_WITHIN_MAP = True
  28.  
  29. # ensure that you visit within this many meters of every part of your map during bootstrap
  30. #BOOTSTRAP_RADIUS = 450
  31.  
  32. GIVE_UP_KNOWN = 75 # try to find a worker for a known spawn for this many seconds before giving up
  33. GIVE_UP_UNKNOWN = 60 # try to find a worker for an unknown point for this many seconds before giving up
  34. SKIP_SPAWN = 90 # don't even try to find a worker for a spawn if the spawn time was more than this many seconds ago
  35.  
  36.  
  37. # Limit the number of simultaneous logins (and app simulations) to this many.
  38. # Lower numbers will increase the amount of time it takes for all workers to
  39. # get started but are recommended to avoid suddenly flooding the servers with
  40. # accounts and arousing suspicion.
  41. SIMULTANEOUS_LOGINS = 2
  42.  
  43. ## alternatively define a Polygon to use as boundaries (requires shapely)
  44. ## if BOUNDARIES is set, STAY_WITHIN_MAP will be ignored
  45. ## more information available in the shapely manual:
  46. ## http://toblerity.org/shapely/manual.html#polygons
  47. #from shapely.geometry import Polygon
  48. #BOUNDARIES = Polygon(((40.799609, -111.948556), (40.792749, -111.887341), (40.779264, -111.838078), (40.761410, -111.817908), (40.728636, -111.805293), (40.688833, -111.785564), (40.689768, -111.919389), (40.750461, -111.949938)))
  49.  
  50. # If accounts use the same provider and password you can set defaults here
  51. # and omit them from the accounts list.
  52. #PASS = 'courgette13'
  53. #PROVIDER = 'ptc'
  54.  
  55. ### Device information will be generated for you if you do not provide it.
  56. ### Account details are automatically retained in pickles/accounts.pickle
  57. ## valid account formats (without PASS and PROVIDER set):
  58. # (username, password, provider, iPhone, iOS, device_id)
  59. # (username, password, provider)
  60. ## valid account formats (with PASS and PROVIDER set):
  61. # (username, iPhone, iOS, device_id)
  62. # [username]
  63. ACCOUNTS = [
  64. ('mryohannmap0700', 'courgette13', 'ptc'),
  65. ('mryohannmap0701', 'courgette13', 'ptc'),
  66. ('mryohannmap0702', 'courgette13', 'ptc'),
  67. ('mryohannmap0703', 'courgette13', 'ptc'),
  68. ('mryohannmap0704', 'courgette13', 'ptc'),
  69. ('mryohannmap0705', 'courgette13', 'ptc'),
  70. ('mryohannmap0706', 'courgette13', 'ptc'),
  71. ('mryohannmap0707', 'courgette13', 'ptc'),
  72. ('mryohannmap0708', 'courgette13', 'ptc'),
  73. ('mryohannmap0709', 'courgette13', 'ptc'),
  74. ('mryohannmap0710', 'courgette13', 'ptc'),
  75. ('mryohannmap0711', 'courgette13', 'ptc'),
  76. ('mryohannmap0712', 'courgette13', 'ptc'),
  77. ('mryohannmap0713', 'courgette13', 'ptc'),
  78. ('mryohannmap0714', 'courgette13', 'ptc'),
  79. ('mryohannmap0715', 'courgette13', 'ptc'),
  80. ('mryohannmap0716', 'courgette13', 'ptc'),
  81. ('mryohannmap0717', 'courgette13', 'ptc'),
  82. ('mryohannmap0718', 'courgette13', 'ptc'),
  83. ('mryohannmap0719', 'courgette13', 'ptc'),
  84. ('mryohannmap0720', 'courgette13', 'ptc'),
  85. ('mryohannmap0721', 'courgette13', 'ptc'),
  86. ('mryohannmap0722', 'courgette13', 'ptc'),
  87. ('mryohannmap0723', 'courgette13', 'ptc'),
  88. ('mryohannmap0724', 'courgette13', 'ptc'),
  89. ('mryohannmap0725', 'courgette13', 'ptc'),
  90. ('mryohannmap0726', 'courgette13', 'ptc'),
  91. ('mryohannmap0727', 'courgette13', 'ptc'),
  92. ('mryohannmap0728', 'courgette13', 'ptc'),
  93. ('mryohannmap0729', 'courgette13', 'ptc'),
  94. ('mryohannmap0730', 'courgette13', 'ptc'),
  95. ('mryohannmap0731', 'courgette13', 'ptc'),
  96. ('mryohannmap0732', 'courgette13', 'ptc'),
  97. ('mryohannmap0733', 'courgette13', 'ptc'),
  98. ('mryohannmap0734', 'courgette13', 'ptc'),
  99. ('mryohannmap0735', 'courgette13', 'ptc'),
  100. ('mryohannmap0736', 'courgette13', 'ptc'),
  101. ('mryohannmap0737', 'courgette13', 'ptc'),
  102. ('mryohannmap0738', 'courgette13', 'ptc'),
  103. ('mryohannmap0739', 'courgette13', 'ptc'),
  104. ('mryohannmap0740', 'courgette13', 'ptc'),
  105. ('mryohannmap0741', 'courgette13', 'ptc'),
  106. ('mryohannmap0742', 'courgette13', 'ptc'),
  107. ('mryohannmap0743', 'courgette13', 'ptc'),
  108. ('mryohannmap0744', 'courgette13', 'ptc'),
  109. ('mryohannmap0745', 'courgette13', 'ptc'),
  110. ('mryohannmap0746', 'courgette13', 'ptc'),
  111. ('mryohannmap0747', 'courgette13', 'ptc'),
  112. ('mryohannmap0748', 'courgette13', 'ptc'),
  113. ('mryohannmap0749', 'courgette13', 'ptc'),
  114. ('mryohannmap0750', 'courgette13', 'ptc'),
  115. ('mryohannmap0751', 'courgette13', 'ptc'),
  116. ('mryohannmap0752', 'courgette13', 'ptc'),
  117. ('mryohannmap0753', 'courgette13', 'ptc'),
  118. ('mryohannmap0754', 'courgette13', 'ptc'),
  119. ('mryohannmap0755', 'courgette13', 'ptc'),
  120. ('mryohannmap0756', 'courgette13', 'ptc'),
  121. ('mryohannmap0757', 'courgette13', 'ptc'),
  122. ('mryohannmap0758', 'courgette13', 'ptc'),
  123. ('mryohannmap0759', 'courgette13', 'ptc'),
  124. ('mryohannmap0760', 'courgette13', 'ptc'),
  125. ('mryohannmap0761', 'courgette13', 'ptc'),
  126. ('mryohannmap0764', 'courgette13', 'ptc'),
  127. ('mryohannmap0765', 'courgette13', 'ptc'),
  128. ('mryohannmap0766', 'courgette13', 'ptc'),
  129. ('mryohannmap0767', 'courgette13', 'ptc'),
  130. ('mryohannmap0768', 'courgette13', 'ptc'),
  131. ('mryohannmap0769', 'courgette13', 'ptc'),
  132. ('mryohannmap0770', 'courgette13', 'ptc'),
  133. ('mryohannmap0771', 'courgette13', 'ptc'),
  134. ('mryohannmap0772', 'courgette13', 'ptc'),
  135. ('mryohannmap0773', 'courgette13', 'ptc'),
  136. ('mryohannmap0774', 'courgette13', 'ptc'),
  137. ('mryohannmap0775', 'courgette13', 'ptc'),
  138. ('mryohannmap0776', 'courgette13', 'ptc'),
  139. ('mryohannmap0777', 'courgette13', 'ptc'),
  140. ('mryohannmap0778', 'courgette13', 'ptc'),
  141. ('mryohannmap0779', 'courgette13', 'ptc'),
  142. ('mryohannmap0780', 'courgette13', 'ptc'),
  143. ('mryohannmap0781', 'courgette13', 'ptc'),
  144. ('mryohannmap0782', 'courgette13', 'ptc'),
  145. ('mryohannmap0783', 'courgette13', 'ptc'),
  146. ('mryohannmap0784', 'courgette13', 'ptc'),
  147. ('mryohannmap0785', 'courgette13', 'ptc'),
  148. ('mryohannmap0786', 'courgette13', 'ptc'),
  149. ('mryohannmap0787', 'courgette13', 'ptc'),
  150. ('mryohannmap0788', 'courgette13', 'ptc'),
  151. ('mryohannmap0789', 'courgette13', 'ptc'),
  152. ('mryohannmap0790', 'courgette13', 'ptc'),
  153. ('mryohannmap0791', 'courgette13', 'ptc'),
  154. ('mryohannmap0792', 'courgette13', 'ptc'),
  155. ('mryohannmap0793', 'courgette13', 'ptc'),
  156. ('mryohannmap0794', 'courgette13', 'ptc'),
  157. ('mryohannmap0795', 'courgette13', 'ptc'),
  158. ('mryohannmap0796', 'courgette13', 'ptc'),
  159. ('mryohannmap0797', 'courgette13', 'ptc'),
  160. ('mryohannmap0798', 'courgette13', 'ptc'),
  161. ('mryohannmap0799', 'courgette13', 'ptc'),
  162. ('mryohannmap0800', 'courgette13', 'ptc'),
  163. ('mryohannmap0801', 'courgette13', 'ptc'),
  164. ('mryohannmap0802', 'courgette13', 'ptc'),
  165. ('mryohannmap0803', 'courgette13', 'ptc'),
  166. ('mryohannmap0804', 'courgette13', 'ptc'),
  167. ('mryohannmap0805', 'courgette13', 'ptc'),
  168. ('mryohannmap0806', 'courgette13', 'ptc'),
  169. ('mryohannmap0807', 'courgette13', 'ptc'),
  170. ('mryohannmap0808', 'courgette13', 'ptc'),
  171. ('mryohannmap0809', 'courgette13', 'ptc'),
  172. ('mryohannmap0810', 'courgette13', 'ptc'),
  173. ('mryohannmap0811', 'courgette13', 'ptc'),
  174.  
  175. ]
  176.  
  177. # key for Bossland's hashing server, otherwise the old hashing lib will be used
  178. HASH_KEY = '3A5C5*******8I7O2K' # this key is fake
  179.  
  180.  
  181. ### these next 6 options use more requests but look more like the real client
  182. APP_SIMULATION = True # mimic the actual app's login requests
  183. COMPLETE_TUTORIAL = True # complete the tutorial process and configure avatar for all accounts that haven't yet
  184. INCUBATE_EGGS = True # incubate eggs if available
  185.  
  186. ## encounter Pokémon to store IVs.
  187. ## valid options:
  188. # 'all' will encounter every Pokémon that hasn't been already been encountered
  189. # 'notifying' will encounter Pokémon that are eligible for notifications
  190. # None will never encounter Pokémon
  191. ENCOUNTER = 'all'
  192.  
  193. # PokéStops
  194. SPIN_POKESTOPS = False # spin all PokéStops that are within range
  195. SPIN_COOLDOWN = 300 # spin only one PokéStop every n seconds (default 300)
  196.  
  197. # minimum number of each item to keep if the bag is cleaned
  198. # remove or set to None to disable bag cleaning
  199. # automatically disabled if SPIN_POKESTOPS is disabled
  200. ITEM_LIMITS = {
  201. 1: 20, # Poké Ball
  202. 2: 50, # Great Ball
  203. 3: 100, # Ultra Ball
  204. 101: 0, # Potion
  205. 102: 0, # Super Potion
  206. 103: 0, # Hyper Potion
  207. 104: 40, # Max Potion
  208. 201: 0, # Revive
  209. 202: 40, # Max Revive
  210. }
  211.  
  212.  
  213. # retry a request after failure this many times before giving up
  214. MAX_RETRIES = 3
  215.  
  216. # add spawn points reported in cell_ids to the unknown spawns list
  217. # disable if your workers already have more than enough points to visit
  218. MORE_POINTS = True
  219.  
  220. # exclude these Pokémon from the map by default (only visible in trash layer)
  221. TRASH_IDS = (
  222. 10, 11, 12, 13, 14, 16, 17, 19, 20, 21, 41, 46, 48, 52, 96
  223. )
  224.  
  225. # include these Pokémon on the "rare" report
  226. RARE_IDS = (
  227. 3, 6, 9, 26, 30, 33, 40, 45, 58, 59, 62, 64, 65, 67, 68, 70, 71, 73, 75, 76, 80, 87, 89, 91, 94, 95, 103, 106, 107, 108, 110, 112, 113, 114, 123, 125, 126, 130, 131, 134, 135, 136, 137, 139, 142, 143, 148, 149
  228. )
  229.  
  230. # the number of threads to use for simultaneous API requests
  231. #NETWORK_THREADS = round((GRID[0] * GRID[1]) / 15) + 1
  232.  
  233. from datetime import datetime
  234. REPORT_SINCE = datetime(2016, 12, 17) # base reports on data from after this date
  235.  
  236. # used for altitude queries and maps in reports
  237. GOOGLE_MAPS_KEY = 'AIzaSyC5jrH8G3DDMwuRU4H2m0nP0LsVXOpw9dY' # this key is fake
  238. #ALT_RANGE = (1250, 1450) # Fall back to altitudes in this range if Google query fails
  239.  
  240. MAP_WORKERS = True # allow displaying the live location of workers on the map
  241.  
  242. # unix timestamp of last spawn point migration, spawn times learned before this will be ignored
  243. LAST_MIGRATION = 1481932800 # Dec. 17th, 2016
  244.  
  245. ## Map data provider and appearance, previews available at:
  246. ## https://leaflet-extras.github.io/leaflet-providers/preview/
  247. #MAP_PROVIDER_URL = '//{s}.tile.osm.org/{z}/{x}/{y}.png'
  248. #MAP_PROVIDER_ATTRIBUTION = '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
  249.  
  250. # set of proxy addresses and ports
  251. #PROXIES = {'socks5://127.0.0.1:1080', 'socks5://127.0.0.1:1081'}
  252.  
  253. # convert spawn_id to integer for more efficient DB storage, set to False if
  254. # using an old database since the data types are incompatible.
  255. #SPAWN_ID_INT = True
  256.  
  257. # Bytestring key to authenticate with manager for inter-process communication
  258. #AUTHKEY = b'm3wtw0'
  259. # Address to use for manager, leave unset or set to None if you're note sure.
  260. #MANAGER_ADDRESS = r'\\.\pipe\pokeminer' # must be in this format for Windows
  261. #MANAGER_ADDRESS = 'pokeminer.sock' # the socket name for Unix systems
  262. MANAGER_ADDRESS = ('127.0.0.1', 5001) # could be used for CAPTCHA solving and live worker maps on remote systems
  263.  
  264. # Store the cell IDs so that they don't have to be recalculated every visit.
  265. # Highly recommended unless you don't have enough memory for them.
  266. # Disabling will increase processor usage.
  267. #CACHE_CELLS = True
  268.  
  269.  
  270.  
  271.  
  272. ### OPTIONS BELOW THIS POINT ARE ONLY NECESSARY FOR NOTIFICATIONS ###
  273.  
  274. NOTIFY = True # enable notifications
  275.  
  276. # create images with Pokémon stats for Tweets
  277. # requires cairo and ENCOUNTER = 'notifying' or 'all'
  278. TWEET_IMAGES = False
  279.  
  280. # As many hashtags as can fit will be included in your tweets, these will
  281. # be combined with landmark-specific hashtags (if applicable).
  282. HASHTAGS = {'SELESTAT', 'PokemonGO'}
  283. #TZ_OFFSET = 1 # UTC offset in hours (if different from system time)
  284.  
  285. # the required number of seconds remaining to notify about a Pokémon
  286. TIME_REQUIRED = 120 # 10 minutes
  287.  
  288. ### Only set either the NOTIFY_RANKING or NOTIFY_IDS, not both!
  289. # The (x) rarest Pokémon will be eligible for notification. Whether a
  290. # notification is sent or not depends on its score, as explained below.
  291. #NOTIFY_RANKING = 90
  292.  
  293. # Pokémon to potentially notify about, in order of preference.
  294. # The first in the list will have a rarity score of 1, the last will be 0.
  295. NOTIFY_IDS = (133, 3, 6, 9, 26, 30, 33, 40, 45, 58, 59, 62, 64, 65, 67, 68, 70, 71, 73, 75, 76, 80, 87, 89, 91, 94, 95, 100, 103, 106, 107, 108, 110, 112, 113, 114, 123, 125, 126, 130, 131, 134, 135, 136, 137, 139, 142, 143, 148, 149)
  296.  
  297. # Sightings of the top (x) will always be notified about, even if below TIME_REQUIRED
  298. #ALWAYS_NOTIFY = 131
  299.  
  300. # Always notify about the following Pokémon even if their time remaining or scores are not high enough
  301. # can be combined with the ALWAYS_NOTIFY ranking
  302. #ALWAYS_NOTIFY_IDS = {89, 130, 131, 143, 144, 145, 146, 149, 150, 151}
  303.  
  304. # Never notify about the following Pokémon, even if they would otherwise be eligible
  305. #NEVER_NOTIFY_IDS = TRASH_IDS
  306.  
  307. # Override the rarity score for particular Pokémon
  308. # format is: {pokemon_id: rarity_score}
  309. #RARITY_OVERRIDE = {148: 0.6, 149: 0.9}
  310.  
  311. # Ignore IV score and only base decision on rarity score (default if IVs not known)
  312. #IGNORE_IVS = False
  313.  
  314. # Ignore rarity score and only base decision on IV score
  315. #IGNORE_RARITY = False
  316.  
  317. # The Pokémon score required to notify goes on a sliding scale from INITIAL_SCORE
  318. # to MINIMUM_SCORE over the course of FULL_TIME seconds following a notification
  319. # Pokémon scores are an average of the Pokémon's rarity score and IV score (from 0 to 1)
  320. # If NOTIFY_RANKING is 90, the 90th most common Pokémon will have a rarity of score 0, the rarest will be 1.
  321. # Perfect IVs have a score of 1, the worst IVs have a score of 0. Attack IV is weighted more heavily.
  322. FULL_TIME = 1680 # the number of seconds after a notification when only MINIMUM_SCORE will be required
  323. INITIAL_SCORE = 0.7 # the required score immediately after a notification
  324. MINIMUM_SCORE = 0.55 # the required score after FULL_TIME seconds have passed
  325.  
  326. ### The following values are fake, replace them with your own keys to enable
  327. ### PushBullet notifications and/or tweeting, otherwise leave them out of your
  328. ### config or set them to None.
  329. ## you must provide keys for at least one service (Twitter and/or PushBullet) to use notifications
  330. #PB_API_KEY = 'o.9187cb7d5b857c97bfcaa8d63eaa8494'
  331. #PB_CHANNEL = 0 # set to the integer of your channel, or to None to push privately
  332. TWITTER_CONSUMER_KEY = 'F2DbbLljyNjXaXpd7WHTKBqyG '
  333. TWITTER_CONSUMER_SECRET = 'ZDOhxuKFcYe8wmX7N3R04t5O5Y7F1LRQny1JHShfyf7Py9xQuT'
  334. TWITTER_ACCESS_KEY = '821158514756349952-tlKvkVkLSeqIyzV4CcX1XqYbH7YblgG'
  335. TWITTER_ACCESS_SECRET = 'p8TOCsbVyIrWR2ih0hIYXnvPR0O8l6MFnD3J2Q8rTG0Cw'
  336.  
  337.  
  338. ##### Referencing landmarks in your tweets/notifications
  339.  
  340. #### It is recommended to store the LANDMARKS object in a pickle to reduce startup
  341. #### time if you are using queries. An example script for this is in:
  342. #### scripts/pickle_landmarks.example.py
  343. #from pickle import load
  344. #with open('pickles/landmarks.pickle', 'rb') as f:
  345. # LANDMARKS = load(f)
  346.  
  347. ### if you do pickle it, just load the pickle and omit everything below this point
  348.  
  349. #from landmarks import Landmarks
  350. #LANDMARKS = Landmarks(query_suffix=AREA_NAME)
  351.  
  352. # Landmarks to reference when Pokémon are nearby
  353. # If no points are specified then it will query OpenStreetMap for the coordinates
  354. # If 1 point is provided then it will use those coordinates but not create a shape
  355. # If 2 points are provided it will create a rectangle with its corners at those points
  356. # If 3 or more points are provided it will create a polygon with vertices at each point
  357. # You can specify the string to search for on OpenStreetMap with the query parameter
  358. # If no query or points is provided it will query with the name of the landmark (and query_suffix)
  359. # Optionally provide a set of hashtags to be used for tweets about this landmark
  360. # Use is_area for neighborhoods, regions, etc.
  361. # When selecting a landmark, non-areas will be chosen first if any are close enough
  362. # the default phrase is 'in' for areas and 'at' for non-areas, but can be overriden for either.
  363.  
  364. ### replace these with well-known places in your area
  365.  
  366. ## since no points or query is provided, the names provided will be queried and suffixed with AREA_NAME
  367. #LANDMARKS.add('Rice Eccles Stadium', shortname='Rice Eccles', hashtags={'Utes'})
  368. #LANDMARKS.add('the Salt Lake Temple', shortname='the temple', hashtags={'TempleSquare'})
  369.  
  370. ## provide two corner points to create a square for this area
  371. #LANDMARKS.add('City Creek Center', points=((40.769210, -111.893901), (40.767231, -111.888275)), hashtags={'CityCreek'})
  372.  
  373. ## provide a query that is different from the landmark name so that OpenStreetMap finds the correct one
  374. #LANDMARKS.add('the State Capitol', shortname='the Capitol', query='Utah State Capitol Building')
  375.  
  376. ### area examples ###
  377. ## query using name, override the default area phrase so that it says 'at (name)' instead of 'in'
  378. #LANDMARKS.add('the University of Utah', shortname='the U of U', hashtags={'Utes'}, phrase='at', is_area=True)
  379. ## provide corner points to create a polygon of the area since OpenStreetMap does not have a shape for it
  380. #LANDMARKS.add('Yalecrest', points=((40.750263, -111.836502), (40.750377, -111.851108), (40.751515, -111.853833), (40.741212, -111.853909), (40.741188, -111.836519)), is_area=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement