pokemongof / pokemongo-bot Goto Github PK
View Code? Open in Web Editor NEWThe Pokemon Go Bot, baking with community.
License: MIT License
The Pokemon Go Bot, baking with community.
License: MIT License
Traceback (most recent call last):
File "pokecli.py", line 32, in
import requests
ImportError: No module named requests
Hi, pp?
Does it walk, teleport, or run from pokestop to pokestop?
Pokebot not spinning, just get
This is PokeStop
dont keep search the fort before have a way to check items
need a rest
{'spawn_points': [{'latitude': 53.136330253680725, 'longitude': 8.213005417302703}, {'latitude': 53.13572059455336, 'longitude': 8.21203219109674}, {'latitude': 53.135303397687196, 'longitude': 8.214389277013524}, {'latitude': 53.13643613496355, 'longitude': 8.212698720545184}, {'latitude': 53.134965451871125, 'longitude': 8.213159216305451}, {'latitude': 53.13697820218987, 'longitude': 8.213425964846731}, {'latitude': 53.13672047647111, 'longitude': 8.214702645753663}, {'latitude': 53.136712816646046, 'longitude': 8.214813192140985}, {'latitude': 53.13574090778001, 'longitude': 8.214182327168299}, {'latitude': 53.13663891080483, 'longitude': 8.213436777140737}, {'latitude': 53.13680472705303, 'longitude': 8.213486643534916}, {'latitude': 53.13672181888559, 'longitude': 8.213461710275894}, {'latitude': 53.13532137169679, 'longitude': 8.211686476134194}, {'latitude': 53.13678806444527, 'longitude': 8.214948676275343}, {'latitude': 53.134716733587275, 'longitude': 8.213084423116486}, {'latitude': 53.135281761172614, 'longitude': 8.213480021247122}, {'latitude': 53.13688763530713, 'longitude': 8.213511576917801}, {'latitude': 53.134799639595215, 'longitude': 8.213109354055629}, {'latitude': 53.13448965680384, 'longitude': 8.213918856864142}, {'latitude': 53.13654834435374, 'longitude': 8.21352238819746}, {'latitude': 53.136480753206996, 'longitude': 8.213276367622168}, {'latitude': 53.13591571571464, 'longitude': 8.212880760856752}, {'latitude': 53.13635955289103, 'longitude': 8.213804152871013}, {'latitude': 53.135220491469624, 'longitude': 8.214364341944401}, {'latitude': 53.135751220957616, 'longitude': 8.211590035275654}, {'latitude': 53.136631252308135, 'longitude': 8.213547321535083}], 's2_cell_id': 5167562853275664384L, 'current_timestamp_ms': 1469084402550L, 'forts': [{'last_modified_timestamp_ms': 1467338436100L, 'enabled': True, 'longitude': 8.212092, 'latitude': 53.136486, 'type': 1, 'id': u'18fc03832066497483a2019f2ab0d958.16'}, {'last_modified_timestamp_ms': 1467338436100L, 'enabled': True, 'longitude': 8.21158, 'latitude': 53.134651, 'type': 1, 'id': u'56fa0096a301462380980e462572924f.16'}, {'last_modified_timestamp_ms': 1468596553846L, 'enabled': True, 'longitude': 8.214112, 'latitude': 53.135139, 'type': 1, 'id': u'5a525fd90b354f6f8cad8502f2ee6f09.16'}, {'last_modified_timestamp_ms': 1469037048260L, 'enabled': True, 'longitude': 8.214065, 'latitude': 53.136425, 'type': 1, 'id': u'ebf75743b4eb4cf0b26ca60b49b6f202.16'}, {'last_modified_timestamp_ms': 1469028291758L, 'enabled': True, 'longitude': 8.215009, 'latitude': 53.136726, 'type': 1, 'id': u'f99ee79119c944c9b8d30e60703d4a3d.16'}]}
It doesn't seem to be catching Pokemon, only spinning pokestops and getting EXP.
So i set the speed -w 4.40 and got this in console
This is PokeStop
distant is 43.8958391159m
need setup the postion to farming fort
((xxx, xxx, 0.0), xxxxxxxxxxxxxxxxxxxxxxxxxxx')
Walking from (xxx, xxx) to (xxx, xxxx) for approx. 95.0sec
If i am correct speed of walking should be low right?
Just curious, is it possible to have the bot run multiple times on different accounts?
My pokemon are not showing up in my Pokedex?
Finish the tutorial on a smartphone. This will then allow everything to be visible.
The above is taken from the README. Is it possible to watch the bot operate?
Seems like bot tries to catch pokemons even without any pokeballs in inventory.
When this happens, "CATCH_POKEMON" structure is empty (no status) and bot tries to keep going. For now I locally added sys.exit(0) when this happens but it should probably start collecting pokeballs for some time instead.
Sadly it doesn't automatically switch to pokestop spinning mode. When running in spinning mode it doesn't catch any pokemons.
working.py it says : pokeball = 1, then it don't use my superball if i change to 2 or 3 it works. Thanks in advance
when trying to login I get this, it worked before I updated the files.
Traceback (most recent call last):
File "C:\PokemonGo-Bot-master\pokecli.py", line 38, in
ssl._create_default_https_context = ssl._create_unverified_context
AttributeError: 'module' object has no attribute '_create_unverified_context'
Hey so i just had an idea, Why don't you make a code that uses great balls when bot encounter higher set amount of CP of a pokemon lets say bot saw a pokemon of CP 1000 let the bot through a normal ball first. if fails then try a great ball if it again fails then through a raspberry and a greatball until its captured. :)
#67 is a similar issue
If you use -c and -s, seems to only stop at pokespots and does not try to capture pokemon. Maybe because it's teleporting around too much to see pokemon appear?
if pokeballs = 0:
farm pokestops until pokeballs >= [some number] then continue hunting
Make a table or something for every pokestop it visits mark it to wait 5 mins.
Check the table if the pokestop have mark if not then spin else scan for other..
Hello,
I tried to log on replacing "python2 pokecli.py -a ptc -u tejado -p 1234 --location "New York, Washington Square" by my IDs but I have an error, my login and password yet they are ok, I don't understand :(
thanks in advance
Some Google accounts use 2-factor authorization. Login for 2-factor currently fails.
Is the bot not collecting stardust? The bot gained many levels but stardust amount never changed!
x
Why should we release a low CP Pokemon if it's the first time we caught it?
When it tries to print the name of the pokemon Nidoran in the terminal it crashes ( there is a wierd symbol in the name )
nidoran is id 29 and 32
edit:
this was an older version my bad
Seems to stop for a bit whenever it encounters this:
2016-07-21 00:49:19,890 [ pgoapi] [ INFO] Create new request...
2016-07-21 00:49:19,891 [ pgoapi] [ INFO] Adding 'GET_INVENTORY' to RPC request
2016-07-21 00:49:19,892 [ pgoapi] [ INFO] Execution of RPC
2016-07-21 00:49:20,081 [ pgoapi] [ INFO] Cleanup of request!
Is this an issue with rpc latency or..?
We can move at 2 Meters per second (which would count into egg hatching), more would be okay too (but would be too fast for egg hatching). Teleporting is just too dangerous, so walking should be implemented.
Please fix the small typo in side the
1. Install all requirements for the project using
pip install -r ./requirements.textto
1. Install all requirements for the project using pip install -r ./requirements.txt
:)
Also the numbering does not work
I only had great balls in my items and I couldn't catch any pokemon. After I grab some regular pokeballs from the pokestops I was able to catch pokemons again.
i start script with -c 9, but all pokemon run out from me within two hours.
pokestop used normally
someone has this problem ?
how to solve it ?
Something rustles nearby!
A Wild Drowzee appeared! [CP246]
Captured Drowzee! [CP246]
A Wild Drowzee appeared! [CP361]
Captured Drowzee! [CP361]
looping: step 2 of 100
steplimit: 100 x: 1 y: 0 pos: 1 dx: 1 dy 0
(53.1406631, 8.216335599999999, 0)
looping: step 3 of 100
steplimit: 100 x: 1 y: 1 pos: 1 dx: 0 dy 1
(53.1406631, 8.218835599999998, 0)
looping: step 4 of 100
steplimit: 100 x: 0 y: 1 pos: 1 dx: -1 dy 0
(53.1381631, 8.218835599999998, 0)
Something rustles nearby!
A Wild Pidgey appeared! [CP155]
[-] Attempted to capture Pidgey - failed.. trying again!
Captured Pidgey! [CP155] - exchanging for candy
Exchanged successfuly!
Exchanged successfuly!
Exchanged successfuly!
Exchanged successfuly!
Exchanged successfuly!
Exchanged successfuly!
Exchanged successfuly!
Hello There smarter ppl than me.
I'm dumb for programming,can anyone write a guide how to make this work for nuubs like me?
I'm at the part where i installed python,and wanted to start pokecli but it just popps and doesn't stay to let me write stuff in it.
Halp pls.
Thanks for it in forward.
I'm going to try to make it by myself, but I don't know if I can succeed so I'll still leave it here:
Basically, instead of having everything printed out, add an argument to shorten it (Only shows "Captured %POKEMON% [CP XXX]" or "Pokestop %NAME% visited, found %ITEMS%")
I installed python 2.7 and runned pip install. Now i got an AttributeError and i have no ideas to handle it. Can anybody please help me?
E:\Pokemon GO\PokemonGo Bot\PokemonGo-Bot-master>python pokecli.py -a ptc -u USERNAME -p PASS --location "Berlin, Potsdamer Platz"
Traceback (most recent call last):
File "pokecli.py", line 38, in <module>
ssl._create_default_https_context = ssl._create_unverified_context
AttributeError: 'module' object has no attribute '_create_unverified_context'
Hello, only I have problem, that all pokemons ran away? (I can see this in Journal in app)
Why a step limit ?
It would be nice to get a report when the script is interrupted (Control+C) pressed, for example. BTW, can the script be stopped by user wish in a different way?
Hello, perhaps it is possible to use lat/long/alt as a location. This way it is easier to make a precise location to get specific pokemons.
Please, add events to show in console like...
A Wild %POKEMON% appeared! Trying to capture... [CP %CP%]
Capturing...
Captured %POKEMON%, Pokeballs used %POKEBALLS%.
Captured %POKEMON%, Pokeballs used %POKEBALLS%, CP is too low, exchanging.
Yoy received %AMOUNT% %POKECANDY% of %POKEMON% and %STARTDUST% star dust.
%POKEMON% run away!
Searching pokemons nearby...
Found a pokestop. Trying to get the items.
You get:
%AMOUNT% %ITEM%
%AMOUNT% %ITEM%
%AMOUNT% %ITEM%
Your bag have %ITEMSINBAG%/%MAXBAGCAPACITY%.
Your bag is full!!!
The pokestop is disabled, skipping.
You level up!! Level %LEVEL%, exp to level up again %RESTEXP%.
You are running out of pokeballs!
Sorry for my bad english
Hello Community, I am aware of botting isn´t a good thing in PokemonGo, but i live in a rual area in Germany without any good Pokemons,only Pokemon aviable here are Rattata and the Pidgion Pokemon,so i took a look at https://www.reddit.com/r/pokemongodev/comments/4tv0er/open_source_fully_functioning_bot_for_farming_and/ and found some bots, for farming Pokestops and catching Pokemon in any location i want..
And the result was a Ban last Night...
My Hardware:
iPhone 5s without jailbreak
I run the Bot in total maybe 2hours. My fakelocation was only 1 hour from my real location located. As precaution i logged in my App only after the bot stopped for at least an hour,so i dont get banned but it didnt worked out..
Just updated the Bot, it shows the following error:
Traceback (most recent call last):
File "pokecli.py", line 38, in
ssl._create_default_https_context = ssl._create_unverified_context
AttributeError: 'module' object has no attribute '_create_unverified_context'
Can you add the link to discord in the readme?
Incubate eggs - free Pokemons
Human walking logic - for eggs
Use Stardust for level Pokemons
Use Candy on 50+ for level pokemons
Sometimes it spams this for over 5minutes, then i have to break the script, and start again
2016-07-21 08:58:59,619 [ pgoapi] [ INFO] Create new request...
2016-07-21 08:58:59,621 [ pgoapi] [ INFO] Adding 'CATCH_POKEMON' to RPC request including arguments
2016-07-21 08:58:59,622 [ pgoapi] [ INFO] Execution of RPC
2016-07-21 08:58:59,943 [ pgoapi] [ INFO] Cleanup of request!
Response dictionary:
{
"unknown2": 8145806132888207460,
"direction": 1,
"auth_ticket": {
"expire_timestamp_ms": 1469086143667,
"start": "5CpLERrRb5ZQphR+vw0n61XTQVlM9W4moeUCvFyeXYm2GzFQ5ZIN0Hkb2+MkOMjxo1ZpP4GIO/CM\nGTLDv46bbQ==\n",
"end": "2Cx/pEQjUoR2E5zicpeWLw==\n"
},
"responses": {
"CATCH_POKEMON": {
"status": 3
}
}
}
A big refactor is necessary to begin to add more complex features, before the code gets too messy.
I'm working on it and will need feedback on my fork soon.
Add a filter to allow you to only capture specific pokemon. So if you're looking for charizard's family, you can list only those pokemon (id's or names) to try and capture.
Testing the bot right now, a time when the Server must be busy,
The bot finds pokemons and a message like
"A Wild Spearow appeared! [CPXXX]"
is printed out. But instead of being followed by either :
"Attempted to capture Spearow - failed.. trying again" OR "Captured Spearow!"
It is followed by another Pokemon encounter
"A Wild Spearow appeared! [CPXXX]"
"A Wild Weedle appeared! [CPXXX]"
My wild guess is that it is the "freezing pokeball" phenomenon that happens on the app as well..
I'm new to the code so I'm not sure about what's happening here but I guess in that situation we should stay on the same spot until the pokemon is captured or goes away instead of moving on with the pokemon still there ?
Also I think those messages should all be logged with a time and I would love to do it :)
Testing this out, found out that it grinded all my pokemon into candy that didn't meet my CP threashold, even the pokemon I had in my inventory, not just the pokemon I caught while running the bot.
When i do pip install -r requirements.txt
everything works until the last (proto-to-dict) and i have this error at the end :
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/g0/q9t3hxlj6r31jtshpx4qz1gw0000gn/T/pip-build-GIODRf/protobuf-to-dict/
i also tried to install directly proto-to-dict but have same issue
sudo -H pip install protobuf-to-dict
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-w7f2vQ/protobuf-to-dict/
i already have installed Python 2.7 and did a brew update and install thing in the readme.
Since proto to dict didn't install, i got an error at launch of the bot :
File "pokecli.py", line 32, in
import requests
ImportError: No module named requests
any idea ?
Tried running the command
pokecli.py -a ptc -u ****** -p ****** -l "XX.xxxxxx -XX.xxxxxx"
and got this error
Traceback (most recent call last):
File "C:\Users\Daniel\Desktop\Pokemon GO\AutoPokestop\pokecli.py", line 34, in
import working
File "C:\Users\Daniel\Desktop\Pokemon GO\AutoPokestop\working.py", line 3, in
import googlemaps
ImportError: No module named googlemaps
What am I doing wrong?
I've run the bot a while and i used it with "-c 0" to get every pokemon in my party.
Or do i just have to leave "-c" off for catching
On the "Pokémon" tab in the game i see there are 9 bot nothing is displayed.
Once i stopped the first run, then all i get now is:
{"responses": { "CATCH_POKEMON": { "status": 3 } }
I know it means flee, though it's the only response i get..
2016-07-21 10:38:15,938 [ pgoapi] [ INFO] Create new request... 2016-07-21 10:38:15,938 [ pgoapi] [ INFO] Adding 'CATCH_POKEMON' to RPC request including arguments 2016-07-21 10:38:15,939 [ pgoapi] [ INFO] Execution of RPC 2016-07-21 10:38:16,266 [ pgoapi] [ INFO] Cleanup of request! Response dictionary: { "unknown2": 8145806132888207460, "direction": 1, "auth_ticket": { "expire_timestamp_ms": 1469092097186, "start": "eDgMNcKL0UfQYKMgEnJ+2Yc79f1LDlaMprhis528FM8uhgDa9dO1+PlHpN9HLjgwZHsiEOOysPX/\n+NAm6G7c+Encp0cRqg1X5umhT7+bhLo=\n", "end": "V5J3qbUWRy8AwL8XoSzCZA==\n" }, "responses": { "CATCH_POKEMON": { "status": 3 } }
Running without spinstop and it seems that releasing low CP pkmn takes a long amount of time to resolve. Is this intentional?
What variables are you guys setting for your walk speed?/what is the max speed to hatch eggs?
I'm currently running 5.0 and I'm getting 1-2 min walk times between captures which seems excessive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.