Forum Discussion
RichardChagnon
5 years agoQrew Trainee
Hi Alexander,
Did you find a solution for this? I am working on a similar problem of writing to a csv file, and the key for me is that the response is a nested dictionary as is the data part. So a couple of for loops works.
for record in r.json()[data]:
for item in record: # build csv line
I hope this helps
------------------------------
Richard Chagnon
Chicago IL
------------------------------
Did you find a solution for this? I am working on a similar problem of writing to a csv file, and the key for me is that the response is a nested dictionary as is the data part. So a couple of for loops works.
for record in r.json()[data]:
for item in record: # build csv line
I hope this helps
------------------------------
Richard Chagnon
Chicago IL
------------------------------