I have the following for loop
:
for user_id in new_followers:
try:
t.direct_messages.new(user_id=user_id, text="Thanks for following. Etc etc etc")
print("Sent DM to %d" % (user_id))
followers_old.add(user_id)
To avoid API limitations, I want to pause the loop for 600 seconds each time 100 direct messages are sent.
What's the best way to do it?