Skip to content Skip to sidebar Skip to footer

Iterating A Loop With A Pause

I am working to integrate with an API that has a limit on the number of requests per second. Is there a way, when running a for loop in python to delay each cycle? Conceptually, so

Solution 1:

import time
...
time.sleep(5)

This will sleep for 5 seconds. See http://docs.python.org/library/time.html#time.sleep


Post a Comment for "Iterating A Loop With A Pause"