I have a function before this that is pulling a data set from the API. I put that set into a DF1, and pulling a column from the DF1 to list to run another function, prompted below. Currently, I am only getting the first ID to pull, the rest do not (About 120+ more IDs). Not sure if a break is missing, but all my attempts to get the iteration to work are essentially dead. The json files should not be returning without error or blank cause I’m not even close to the API limit.
”’
def main(list1):
list_id = list1
allrt = []
while True:
for tasklist in list_id:
response = requests.get(
f'https://stackoverflow.com.json',
headers = {"authorization": !!!@@@###$$$}
)
json_load = json.loads(response.text)
cleaned_tasklists = pd.json_normalize(json_load)
allrt.append(cleaned_tasklists)
return pd.concat(allrt)