aschleg / petpy

Petpy is an easy-to-use and convenient Python wrapper for the Petfinder API. Includes methods for parsing output JSON into pandas DataFrames for easier data analysis
http://petpy.readthedocs.io
MIT License
28 stars 13 forks source link

fix animal_type results #18

Closed ma7555 closed 4 years ago

ma7555 commented 4 years ago

a workaround as petfinder api ignores this parameter if passed in the get request params

ma7555 commented 4 years ago

I have added an api quota checker, and some if conditions to check if the response dict contains the needed keys as it sometimes returns a KeyError if too many requests / api quota is exhausted