I have an Instagram API which I load into a JSON. The response is
coming properly and I am even able to fetch the id from the data
received. Then I save it in a python list and put it in an Excel sheet
Here is the catch. While loading the values, If there is no
response from API in case of a deleted instagram account,where the
JSON will be empty, I want to store "ACC deleted" in the list.
(NOTE :- I also referred similar questions but didnt get my answer
Here is the code:
for r in range(1,51):
for item in beta['data']:
list.append(item['id'])** //*HERE I WANT THE CHANGE*
for j in range(len(list)):
for row in sheet.iter_rows(min_row=j+1, max_row=j+1):
for cell in row:
The json Response is this:
"full_name": "shwan mcswan"
If the json response is empty like below, how to store "ACC
deleted" in the list?