Aug-14-2020, 01:06 PM
(This post was last modified: Aug-14-2020, 01:06 PM by onenessboy.)
(Aug-14-2020, 11:42 AM)ndc85430 Wrote:(Aug-13-2020, 05:20 PM)onenessboy Wrote:status = json.loads(response.text) items = status.items() tags = items['value']['tags'] print(tags)
One question to help you work it out: what type isitems
? Perhaps you should print it out if you're not sure.
Yeah tried with
print(type(items))it returned class dict
I even tried this
tags = items['value']['tags']replaced with
tags = get('tags')
then it returned
Nonetype error