-3
Could someone help with the following doubt?
in "item", the goal is to loop from 0 to 50
id_rec = [conteudo['complainResult']['complains']['data'][item]['id']]
I made the following code:
item = 0
while item < len(id_rec):
item = item + 1
However, you have only returned the first record. How to proceed?
What would be the way, then?
– Erick Kill
It depends on what the content of id_rec is... Without knowing what you have you can’t help
– wensiso
the contents are being pulled from this JSON: https://iosearch.reclameaqui.com.br/raichu-io-site-search-v1/query/companyComplains/50/0?company=38653&status=ANSWERED&evaluated=bool:false
– Erick Kill
only returns 50 results at a time. The idea is to create the list with these 50 records (changing the item value), in a kind of "for". Got it?
– Erick Kill