We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried on both Windows and Linux, when requesting for pokemons type, the API always answers something like this (instead of "fire"):
>>> import pokebase as pb >>> print(pb.pokemon('charmander').types) [<pokebase.interface.APIMetadata object at 0x00000212A9AE6710>]
The text was updated successfully, but these errors were encountered:
Try with:
for type in pb.pokemon('charmander').types: print(type.name)
Why? 'types' returns a type list, and type object is an APIMetadata object. According to the PokeAPI, a type request can contains:
{ "id": 5, "name": "ground", ... more json data }
Sorry, something went wrong.
No branches or pull requests
Tried on both Windows and Linux, when requesting for pokemons type, the API always answers something like this (instead of "fire"):
The text was updated successfully, but these errors were encountered: