Comments (3)
use this for getting pokemon id
pokemonId = getattr(pokemon, "pokemon_id", None)
if not pokemonId:
pokemonId = pokemon.pokemon_data.pokemon_id
There is not always a pokemon_data inside pokemon. Depends on the type of pokemon you find
from pokemongo-api.
? Do you have any examples @dnsBlah
from pokemongo-api.
lately I found that catchable and nearby pokemon are 1 and the same, I do a double check after I filter the pokemon out, I loop to only return unique encounter ids
sometimes its double
simetimes its not
one of the 2 types has pokemon_id directly and missing pokemon_data
thats why I get the id as mentioned in my previous comment
from pokemongo-api.
Related Issues (20)
- How to determine the level of PokeGym? HOT 1
- Question about use HOT 3
- Error in Geo Request HOT 6
- Connection problems HOT 1
- Question about use of coordinates. HOT 2
- Clarification on `episilon` and `step` in `trainer.WalkTo` HOT 2
- AttributeError: 'str' object has no attribute 'noop' HOT 3
- TypeError: __init__() got an unexpected keyword argument 'auth'
- Error: Expected a bytes-like object, str found HOT 1
- Can't find pokestops HOT 1
- No update?
- Connection problem since 13/02/17 HOT 1
- TypeError: sequence item 0: expected a bytes-like object, str found HOT 1
- Proposing a PR to fix a few small typos
- Should this be git clone --recursive ? but protoc was not found HOT 2
- Unknown 6 error HOT 2
- findBestPokemon() function not working ? HOT 5
- setFavoritePokemon proto fix HOT 7
- Update Readme HOT 1
- Help: How to apply a lure module to a pokestop ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pokemongo-api.