I am very new to Python and parsing data.
I can pull an external JSON feed into a Python dictionary and iterate over the dictionary.
for r in results:
There are two straightforward ways of reading from Python dict if key might not be present. for example:
dicty = {'A': 'hello', 'B': 'world'}
value = dicty.get('C', 'default value')
value = dicty['C'] if dicty['C'] else 'default value'
try:
value = dicty['C']
except KeyError as ke:
value = 'default value'