Skip to content

Commit

Permalink
Temporary update for some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBotter committed Jul 26, 2016
1 parent 6d8d7a6 commit 140a691
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 2 deletions.
32 changes: 32 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pgoapi - Pokemon Go API
Copyright (c) 2016 tjado <https://github.com/tejado>
Modifications Copyright (c) 2016 beeedy <https://github.com/beeedy>
Modifications Copyright (c) 2016 dosaki <https://github.com/dosaki>
Modifications Copyright (c) 2016 TomTheBotter <https://github.com/TomTheBotter>
Modifications Copyright (c) 2016 j-e-k <https://github.com/j-e-k>
Modifications Copyright (c) 2016 esfomeado <https://github.com/esfomeado>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

Author: tjado <https://github.com/tejado>
Modifications by: beeedy <https://github.com/beeedy>
Modifications by: dosaki <https://github.com/dosaki>
Modifications by: TomTheBotter <https://github.com/TomTheBotter>
Modifications by: j-e-k <https://github.com/j-e-k>
Modifications by: esfomeado <https://github.com/esfomeado>
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Pokemon Go Working Bot Hack


## USE WITH CAUTION!
Niantic may ban you if you run the bot while signed in through your phone.


## Important Announcement
If your bot stops working all of a sudden and doesn't move, input your latitude and longitude manually in pokebot.py. This happened because there is a limit to how many calls you can make for the API. Also, I won't be able to respond to all issues asap, due to the busy schedule ahead of me. I may go back to this project in a week or two. Cheers!


## Changes and updates
1. Now you can hatch and incubate eggs. In order to do this, change step size in the config.json file to like 1 or 2 or something like that. Step size corresponds to the meters traveled per server call.
2. Terminal/CMD output is so much more cleaner
3. Pokemon and transfered and you can get their candy
4. Easier and faster to level up and catch rare pokemon


## Instructions
1. Download or fork project and open up zip file.
2. Open up CMD/Terminal and change directory to that folder; for example, if I saved it the file in my desktop, I would `cd Desktop` and then `cd Pokemon-Go-Bot-Working-Hack-API-master`
3. You need to install Python version 2.7 and have pip installed; if you don't have that, refer to tutorials on the web.
4. Run the following line on terminal/CMD: `pip install -r requirements.txt` If that doesn't work then just add `sudo` to the beginning and enter the password for your main computer account.
5. Create a google maps API key and activate it:
1. Create it here: https://console.developers.google.com/projectselector/apis/credentials
2. Then activate it here (select your project on the dropdown menu): https://console.developers.google.com/apis/api/directions_backend/overview?project=_
6. Then go to the configure.json file and put in your username, password, location(don't make this ridiculous; make sure it is or close to where you signed in last), your google maps API key which you created earlier.
7. Run the following line on terminal/CMD if you login into Pokemon Go with Google: `python pokebot.py -i 0` and `python pokebot.py -i 1` if you use Pokemon Trainer's Club
8. After you run it the first time add `--cache` to the end. For example, `python pokebot.py -i 0 --cache`
9. Many thanks to Tejado, Milaly, and the other wonderful devs that worked on this project!


## TODO
1. If your pokebox is full, then the bot won't do anything as of right now; I can do something about this later. Just transfer some pokemon manually for now. But with the bot, if you start off with like 100 pokemon, it will take quite some time to fill up, since it transfers pokemon that don't make the cutoffs that are set in config.json
2. Throw the type of ball based on the color of the circle of the pokemon
2 changes: 1 addition & 1 deletion pgoapi/pgoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def spin_near_fort(self):
destinations = filtered_forts(self._posf,forts)
if destinations:
fort = destinations[0]
self.log.info("Walking to fort at http://maps.google.com/maps?q=%s,%s", fort['latitude'], fort['longitude'])
self.log.info("Walking to fort at %s,%s", fort['latitude'], fort['longitude'])
self.walk_to((fort['latitude'], fort['longitude']))
position = self._posf # FIXME ?
res = self.fort_search(fort_id = fort['id'], fort_latitude=fort['latitude'],fort_longitude=fort['longitude'],player_latitude=position[0],player_longitude=position[1]).call()['responses']['FORT_SEARCH']
Expand Down
2 changes: 1 addition & 1 deletion pokebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Do NOT use this bot while signed into your phone -TomTheBotter

# If you want to make the bot as fast as possible for catching more pokemon (like you are driving a fast car--it won't look suspicious though, since it only goes on paths), make stepsize 200; for more info see that method in pgoapi.py under pgoapi...but still I wouldn't recommend making stepsize that high
# If you want to make the bot as fast as possible for catching more pokemon (like you are driving a fast car--it won't look suspicious though, since it only goes on paths), make stepsize 200; for more info see that method in pgoapi.py under pgoapi

import os
import re
Expand Down

0 comments on commit 140a691

Please sign in to comment.