Save data to database from multiple APIs django
there are over 20 APIs that are differentiated by name query string argument at the end of them like:(https/.../?name=121). now i am just hard coding them in my code for example:
- response1 = requests.get .....
- response2 = requests.get .....
with this approach i should write 20 lines .is there any better way to do this?
note: i need all these APIs at the same time cause they get updated every 5 minutes and i should store them into database separately