Can anyone assist me in solving this complex loop? I need to call 5 API URLs, each a specific number of times before moving on to the next URL in sequence and then starting over again.
https://www.example1.com should be called 4 times
https://www.example2.com should be called 10 times
https://www.example3.com should be called 8 times
https://www.example4.com should be called 9 times
https://www.example5.com should be called 6 times
The loop should end on and then begin again at the top with . An unstoppable loop is needed.
Many thanks to anyone who can provide an answer.
Here is my code:
This is what I have tried so far
The output of the code is commented within the code above.