Skip to content

NewyorkDev/PokemonGo-Bot

 
 

Repository files navigation

PokemonGo-Bot - a pokemon script can catch pokemon and spin the pokestop.

Project chat

Join the chat at https://gitter.im/PokemonGoF/PokemonGo-Bot

We use Gitter for a Github-integrated web chat. Click here to join the chat!

Features:

  • Search Fort(Spin Pokestop)
  • Catch Pokemon
  • Release low cp pokemon
  • Walking as you
  • Use the ball you have to catch, don't if you don't have

To-Do:

  • Google Map API key setup
  • Limit the step to farm specific area for pokestops
  • Pokemon transfer filter
  • Drop items when bag is full
  • Pokemon catch filter
  • Hatch eggs
  • Incubate eggs
  • Evolve pokemons
  • Use candy
  • Code refactor

Installation

Python Installation

[Install Python 2.7](https://wiki.python.org/moin/BeginnersGuide/Download)
[Install PIP](https://pip.pypa.io/en/stable/installing/)

Google Protobuf Installation

MAC:  brew update && brew install --devel protobuf 

Install Pokemon_Go_Bot

Download or clone the repository.
Using a terminal navigate into the clone repository.
Install all requirements for the project using `pip install -r ./requirements.txt`

Google Maps API (Code is not done yet)

Google Maps API: a brief guide to your own key

This project uses Google Maps. There's one map coupled with the project, but as it gets more popular we'll definitely hit the rate-limit making the map unusable. That said, here's how you can get your own and replace ours:

  1. Navigate to this page
  2. Select 'Create a project' in the dropdown menu.
  3. Wait an eternity.
  4. Click 'Create' on the next page (optionally, fill out the info)
  5. Copy the API key that appears.
  6. After the code done, will update here how to replace

Usage

usage: pokecli.py [-h] -a AUTH_SERVICE -u USERNAME -p PASSWORD -l LOCATION [-w]  [-d] [-t] [-s] [-c]

optional arguments:
  -h, --help                                    show this help message and exit
  -a AUTH_SERVICE, --auth_service AUTH_SERVICE  Auth Service ('ptc' or 'google')
  -u USERNAME, --username USERNAME              Username
  -p PASSWORD, --password PASSWORD              Password
  -l LOCATION, --location LOCATION              Location (Address or 'xx.yyyy,zz.ttttt')
  -w SPEED,  --walk SPEED                       Walk instead of teleport with given speed (meters per second max 4.16 becourse of walking end on 15km/h)
  -s SPINSTOP, --spinstop                       Enable Spinning of PokeStops
  -c CP, --cp                                   Set the CP to transfer or lower (eg. 100 will transfer CP0-99)
  -d, --debug                                   Debug Mode
  -t, --test                                    Only parse the specified location

Command Line Example

Pokomon Training Account:
$ python2 pokecli.py -a ptc -u tejado -p 1234 --location "New York, Washington Square"
Google Account:
$ python2 pokecli.py -a google -u tejado -p 1234 --location "New York, Washington Square"

FAQ

Does it run automatally?

Not yet, still need a trainer to train the script param.  But we are very close to. 

Set GEO Location

It works, use -l "xx.yyyy,zz.ttttt" to set lat long for location. -- diordache

FLEE

The status code "3" corresponds to "Flee" - meaning your Pokemon has run away. {"responses": { "CATCH_POKEMON": { "status": 3 } }

My pokemon are not showing up in my Pokedex?

Finish the tutorial on a smartphone. This will then allow everything to be visible.

How can I maximise my XP per hour?

Quick Tip: When using this script, use a Lucky egg to double the XP for 30 mins. You will level up much faster. A Lucky egg is obtained on level 9 and further on whilst leveling up. (from VipsForever via /r/pokemongodev)

Requirements

  • Python 2
  • requests
  • protobuf
  • gpsoauth
  • geopy
  • s2sphere
  • googlemaps

Contributors (Don't forget add yours here when you create PR:)

eggins -- The first pull request :)
crack00r
ethervoid Bashin

Credits

The works are based on the Pokemon Go API

tejado many thanks for the API
Mila432 for the login secrets
elliottcarlson for the Google Auth PR
AeonLucid for improved protos
AHAAAAAAA for parts of the s2sphere stuff

Donation

Bitcoin Address: 1PJMCx9NNQRasQYaa4MMff9yyNFffhHgLu

Donate

About

The Pokemon Go Bot script, baking with community.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.9%
  • Protocol Buffer 45.1%