cglatot / pokemanager Goto Github PK
View Code? Open in Web Editor NEWUses Python API for Pokemon Go to mass transfer Pokemon
License: Other
Uses Python API for Pokemon Go to mass transfer Pokemon
License: Other
This is currently taken into consideration in the "Transfer duplicates" - but is not for the normal transfer.
Add it to the normal transfer (refer to the duplicates method for checking)
add exception of rare pokemon when remove. Never remove listed pokemon.
I've tried login in with my google account without success, the pic works fine tho.
MAIN MENU
1: View Pokemon
2: View Counts
3: Transfer Pokemon
4: Rename Pokemon
5: Exit
Enter choice: Traceback (most recent call last):
File "pogo/demo.py", line 337, in
mainMenu(session)
File "pogo/demo.py", line 288, in mainMenu
menuChoice = int(raw_input("\nEnter choice: "))
ValueError: invalid literal for int() with base 10: ''
I'm a newbie to docker and python. I get this when loading in. It never gives me a chance to actually put in a value.
Would likely need to do some Regex matching - or even construct the name first and see if it matches the existing nickname. Skip those ones that already have IVs as nicknames.
Cannot login right now. I tried to login with latest api and it worked. It seems like you just copied the python api and modified the demo.py. This tight coupling is very bad and causes problems like these when api needs to be updated, it is very hard to do. Instead you can add the api as a submodule which can be updated on the fly.
Hi, i'm playing with a google account that ends with "@tiscali.it", i used this on ingress and started to use it here on PKMN GO as well, but even though the phone app accepts it, something doesn't like it here, either the program or api, so i get:
Access token not generated
Session not created successfully
Do you think there's anything you or i can do to fix this problem?
Thanks in advance
How do i do?
Traceback (most recent call last):
File "./pogo/demo.py", line 20, in <module>
from api import PokeAuthSession
File "/home/nitrous/PokeManager/pogo/api.py", line 7, in <module>
from session import PogoSession
File "/home/nitrous/PokeManager/pogo/session.py", line 36, in <module>
from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: No module named packages.urllib3.exceptions
Can someone please help
Should add an option to allow to transfer duplicates and save highest CP pokemon and / or pokemon that meet cp iv requirements
I just installed this application locally with Python 2.7.12 and tried to run this.
After running I immediately got this error:
C:\PokeManager>python ".\pogo\demo.py" -a google -u "[email protected]" -p "mypassword" -l "xx.lat , xx.long"
Traceback (most recent call last):
File ".\pogo\demo.py", line 14, in <module>
from api import PokeAuthSession
File "C:\PokeManager\pogo\api.py", line 10, in <module>
from gpsoauth import perform_master_login, perform_oauth
File "C:\Python27\lib\site-packages\gpsoauth\__init__.py", line 4, in <module>
from . import google
File "C:\Python27\lib\site-packages\gpsoauth\google.py", line 4, in <module>
from Cryptodome.PublicKey import RSA
File "C:\Python27\lib\site-packages\Cryptodome\PublicKey\RSA.py", line 79, in <module>
from Cryptodome.IO import PKCS8, PEM
File "C:\Python27\lib\site-packages\Cryptodome\IO\PKCS8.py", line 73, in <module>
from Cryptodome.IO._PBES import PBES1, PBES2, PbesError
File "C:\Python27\lib\site-packages\Cryptodome\IO\_PBES.py", line 44, in <module>
from Cryptodome.Cipher import DES, ARC2, DES3, AES
File "C:\Python27\lib\site-packages\Cryptodome\Cipher\__init__.py", line 78, in <module>
from Cryptodome.Cipher._mode_ecb import _create_ecb_cipher
File "C:\Python27\lib\site-packages\Cryptodome\Cipher\_mode_ecb.py", line 46, in <module>
"""
File "C:\Python27\lib\site-packages\Cryptodome\Util\_raw_api.py", line 168, in load_pycryptodome_raw_lib
raise OSError("Cannot load native module '%s'" % name)
OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'
Some information about my software:
Python 2.7.12
pip 8.1.2
git version 2.9.2.windows.1
java version 1.8.0_102-b14 64-bit
Windows 10 pro 64-bit
Removing the mention of a location would likely cause less confusion.
Can't connect using the API since 13th February (it seems to be a general problem on other pogo api too) :
Creating Google session for xxxx
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Limited functionality. No location provided
Starting new HTTPS connection (1): pgorelease.nianticlabs.com
Invalid URL u'https:///rpc': No host supplied
Traceback (most recent call last):
File "./Loisirs/PokemonGo/AutomaticRenamer/pogo/demo.py", line 709, in
session = poko_session.authenticate(args.location)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 149, in authenticate
}[self.provider](locationLookup=locationLookup, noop=noop)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 101, in createGoogleSession
noop=noop
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 71, in createPogoSession
location
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 62, in init
self.getInventory()
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 216, in getInventory
self.getProfile()
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 249, in getProfile
res = self.wrapAndRequest(payload)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 151, in wrapAndRequest
res = self.request(self.wrapInRequest(payload, defaults=defaults))
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 148, in request
raise GeneralPogoException('Probably server fires.')
custom_exceptions.GeneralPogoException: Probably server fires.
I'd like to see a way to rename all (or selected) Pokémon back to default. Also, could you add options for renaming? I'd like just "IV NAME"
I could pull request if u want, but it's pretty simple change that should be easy enough to do for you.
Hey , I've been looking at other apps ( I try to find a way to mass evolve) and I found out https://github.com/keyphact/awesome-pokemongo
which offers many options that could be nice in this solution.
What do you think ?
docker run --rm -it -e "AUTHTYPE=ptc" -e "LOGIN=nepoxx" -e "PASSWORD={myPass}" -e "STARTINGPOINT=X, Y" ryebrye/pokemongo-manager:latest
results in:
Creating Google session for nepoxx
^
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Coordinates: X -Y 0.0
Access token not generated
Session not created successfully
100% appears close to 1% when it should appear close to 97% ones.
I changed the rename method for myself but don't want to push it for everyone in case that'S not what you want, but you could do (the 100 is in fact L(lowercase)) :
if str(monster[5]) == '100' :
session.nicknamePokemon(monster[6],'l00-15/15/15')
logging.info('Renamed ' + monster[0] + ' to l00-15/15/15')
else :
session.nicknamePokemon(monster[6],str(monster[5]) + '-' + str(monster[2]) + '/' + str(monster[3]) + '/' + str(monster[4]))
logging.info('Renamed ' + monster[0] + ' to ' + str(monster[5]) + '-' + str(monster[2]) + '/' + str(monster[3]) + '/' + str(monster[4]))
Creating Google session for XXXXXXX
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Access token not generated
Session not created successfully
hi can i req feature for website viewer?
maybe simple run webserver and json request..
im so sorry i dont know about python....
It may be nice to have a way to know what are the best moves for a given pokemon and find an heuristic that defines at what IV difference is worthing having the 2 best moves on 1 pokemon vs another one that has lowest moves but has a bit higher IV.
Am I clear enough on the request ?
I name my pokemon foo ++ +- -+ -- depending on whether they have the correct moves for their Quick and Main.
I am currently using: https://pokemon.gameinfo.io/ for which moves are considered the best.
Would be awesome to have this type of functionality in your amazing Manager
hello,this pokemanager really helps me alot to manage my pokemon and i think it the best so far, and is it possible to add item management feature?
The data is basically already formatted correctly anyway. Exporting to a CSV would allow people to get a copy of what they have without having to reload the script every time. Saves on API calls and with a CSV you can use Google Sheets or Excel to do a bunch of stuff with the data.
Great app, loving it so far!
I've started implementing this myself, so maybe I can submit it as a pull request once I've got it complete.
It would be great to be able to quickly Upgrade a specific Pokemon a specified number of times, or until you run out of candies/dust. Same idea with Evolving, except evolve all Pokemon of a single type (useful for cases where you're farming XP or have popped an egg). I've started work on this, and it seems to be doable using the UpgradePokemonMessage_pb2 and EvolvePokemonMessage_pb2 messages.
I'll submit a Pull Request some time this weekend or early next week with my implementation.
Hi,
It's possible to rename pokemon like this Pikachu_IV% ?
Is it possible to know the levels of the Pokemons through the API?
the console i get when it crashes, it used to work before but stopped recently
F:\gomap\mass release>python ".\pogo\demo.py" -a ptc -u khaldakke -p Indestructi
ble5 -l "35.6443926, 139.6788992"
Traceback (most recent call last):
File ".\pogo\demo.py", line 11, in
import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
File "F:\gomap\mass release\pogo\POGOProtos\Enums\PokemonMove_pb2.py", line 23
, in
2\x14\n\x0fSCALD_BLASTOISE\x10\x86\x01\x12\x19\n\x14HYDRO_PUMP_BLASTOISE\x10
\x87\x01\x12\x0f\n\nWRAP_GREEN\x10\x88\x01\x12\x0e\n\tWRAP_PINK\x10\x89\x01\x12
x15\n\x10\x46URY_CUTTER_FAST\x10\xc8\x01\x12\x12\n\rBUG_BITE_FAST\x10\xc9\x01\x1
2\x0e\n\tBITE_FAST\x10\xca\x01\x12\x16\n\x11SUCKER_PUNCH_FAST\x10\xcb\x01\x12\x1
7\n\x12\x44RAGON_BREATH_FAST\x10\xcc\x01\x12\x17\n\x12THUNDER_SHOCK_FAST\x10\xcd
\x01\x12\x0f\n\nSPARK_FAST\x10\xce\x01\x12\x12\n\rLOW_KICK_FAST\x10\xcf\x01\x12
x15\n\x10KARATE_CHOP_FAST\x10\xd0\x01\x12\x0f\n\nEMBER_FAST\x10\xd1\x01\x12\x15
n\x10WING_ATTACK_FAST\x10\xd2\x01\x12\x0e\n\tPECK_FAST\x10\xd3\x01\x12\x0e\n\tLI
CK_FAST\x10\xd4\x01\x12\x15\n\x10SHADOW_CLAW_FAST\x10\xd5\x01\x12\x13\n\x0eVINE_
WHIP_FAST\x10\xd6\x01\x12\x14\n\x0fRAZOR_LEAF_FAST\x10\xd7\x01\x12\x12\n\rMUD_SH
OT_FAST\x10\xd8\x01\x12\x13\n\x0eICE_SHARD_FAST\x10\xd9\x01\x12\x16\n\x11\x46ROS
T_BREATH_FAST\x10\xda\x01\x12\x16\n\x11QUICK_ATTACK_FAST\x10\xdb\x01\x12\x11\n\x
0cSCRATCH_FAST\x10\xdc\x01\x12\x10\n\x0bTACKLE_FAST\x10\xdd\x01\x12\x0f\n\nPOUND
_FAST\x10\xde\x01\x12\r\n\x08\x43UT_FAST\x10\xdf\x01\x12\x14\n\x0fPOISON_JAB_FAS
T\x10\xe0\x01\x12\x0e\n\tACID_FAST\x10\xe1\x01\x12\x14\n\x0fPSYCHO_CUT_FAST\x10
xe2\x01\x12\x14\n\x0fROCK_THROW_FAST\x10\xe3\x01\x12\x14\n\x0fMETAL_CLAW_FAST\x1
0\xe4\x01\x12\x16\n\x11\x42ULLET_PUNCH_FAST\x10\xe5\x01\x12\x13\n\x0eWATER_GUN_F
AST\x10\xe6\x01\x12\x10\n\x0bSPLASH_FAST\x10\xe7\x01\x12\x1d\n\x18WATER_GUN_FAST
_BLASTOISE\x10\xe8\x01\x12\x12\n\rMUD_SLAP_FAST\x10\xe9\x01\x12\x16\n\x11ZEN_HEA
DBUTT_FAST\x10\xea\x01\x12\x13\n\x0e\x43ONFUSION_FAST\x10\xeb\x01\x12\x16\n\x11P
OISON_STING_FAST\x10\xec\x01\x12\x10\n\x0b\x42UBBLE_FAST\x10\xed\x01\x12\x16\n\x
11\x46\x45INT_ATTACK_FAST\x10\xee\x01\x12\x14\n\x0fSTEEL_WING_FAST\x10\xef\x01\x
12\x13\n\x0e\x46IRE_FANG_FAST\x10\xf0\x01\x12\x14\n\x0fROCK_SMASH_FAST\x10\xf1\x
01\x62\x06proto3')
TypeError: init() got an unexpected keyword argument 'syntax'
F:\gomap\mass release>pause
Press any key to continue . . .
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Access token not generated
Session not created successfully
I installed and did everything y'all said to do but ^ im running windows 10
I see that #18 added a docker file to this repository. It would be awesome if the docker image were published to docker hub so that I could grab that instead of having to clone the repository and build the image myself.
In the past, I've used travis-ci to publish docker images to docker hub automatically upon certain conditions (e.g. when the master branch is updated, when a new tag is added, etc).
I'd be happy to contribute to this if you'd like.
Is that possible to have sorting option when we view pokemon list ?
If , lets say, I want to see them by IV or CP
Thanks
Win7/64. The displays that are supposed to be in color instead are displayed with the ANSI color codes literally.
←[1;37;40m SPEAROW | 216 | 7 | 6 | 7 | 44 | PECK | DRILL_PECK ←[0m
←[1;32;40m SPEAROW | 48 | 11 | 13 | 13 | 82 | PECK | DRILL_PECK ←[0m
I believe this is related:
http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
1: View Pokemon
2: View Counts
3: Transfer Pokemon
4: Transfer Duplicate Pokemon
5: Rename Pokemon
6: Set Favorite
7: Exit
Enter choice: 1
Traceback (most recent call last):
File "./pogo/demo.py", line 634, in
mainMenu(session)
File "./pogo/demo.py", line 573, in mainMenu
if menuChoice == 1: viewPokemon(session)
File "./pogo/demo.py", line 520, in viewPokemon
L = [pokedex[pokemon.pokemon_id],pokemon.cp,pokemon.individual_attack,pokemon.individual_defense,pokemon.individual_stamina,IvPercent,pokemon,move_1,move_2]
KeyError: 239
Hatched an elekid which is 239 in Gen2.
Hi!
I tried running PokeManager on Linux, had this as a result:
tokarevi@home-pc:$ cd /home/tokarevi/PokeManager-master/PokeManager-master$ ./PokeManager.bat
tokarevi@home-pc:
Traceback (most recent call last):
File "./pogo/demo.py", line 10, in
import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
File "/home/tokarevi/PokeManager-master/pogo/POGOProtos/Enums/PokemonMove_pb2.py", line 10, in
from google.protobuf import symbol_database as _symbol_database
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/symbol_database.py", line 180, in
_DEFAULT = SymbolDatabase(pool=descriptor_pool.Default())
AttributeError: 'module' object has no attribute 'Default'
How can this be corrected?
I'm assuming this is Ditto and Transform, but when trying to do option 1 (View Pokemon), I am now getting:
Value Error: Enum PokemonMove has no name defined for value 242.
EDIT: I was able to add it to the two placed in the PokemonMove_pb2 and then compile and it worked.
Pidgeot, Hypno, etc show that they can be evolved, even though they are at their final evolution.
This seems to be inconsistent. Sometimes it will show a 1, other times it will show nothing (the intended behaviour for final evolve forms)
It would be nice to have another column telling us how many we should transfer to optimize our candies. Lets say I have 112 candies and 20 pidgey, I'd like the app to tell me I should transfer :
floor(112/12) = 9 + 4 free
20 piedgey - 9 = 11 pidgey free
if I transfer 12-4 free = 8, i can evolve evolve 1 more,
So the number of pidgey I really have to transfer is 11-8 = 3
(Also, a column with how many I can evolve Considering transfers could be nice)
I'd like to add the ability to do things like View Pokemon and generate a CVS with a single command and no UI. Would you be interested in this? I'd have to convert from argparse to docopt in order to do it. If you are willing to accept it, I'll do it.
I have a pretty decent example of solving a complex question with it over on Stack Overflow.
Edited the pokemanager.bat correctly, but upon opening it closes after a quarter of a second and I can briefly see
Starting new HTTPS connection (1): android.clients.google.com
Access token not granted
Session not created successfully
Upon running the .bat as admin it flashes for an even shorter amount of time, and proceeds to do nothing.
No clue what the issue could be, help greatly appreciated.
http://imgur.com/pnvKBcq
I keep getting this. Plz help
Hello I'm using pokemanager on mac osx, the version berfore work flawlessly, but now it's always giving me an error when i'm going to transfer pokemon.
i access this with terminal on os x with command cd ~/Downloads/PokeManager-master/pogo then run python demo.py but when i choose 3 (transfer pokemon) it giving me error messages like this :
Enter choice: 3
Traceback (most recent call last):
File "demo.py", line 464, in
mainMenu(session)
File "demo.py", line 415, in mainMenu
elif menuChoice == 3: massRemove(session)
File "demo.py", line 35, in massRemove
rf = open(os.path.dirname(file) + '/../exceptions.config')
IOError: [Errno 2] No such file or directory: '/../exceptions.config'
Can you help me ? Thanks before :)
it's possible to translate pokemon name for rename with %IV in french ? i can just modify PokeManager/pogo/pokedex.py ?
Thanks you
Since the max CP is relative to the each type of Pokemon, IV and user level, wouldn't it be better to be able to set the percentile of maximum current CP instead of a static number?
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.