0

I want to run the loop only when the actual system time has 30 seconds mark and then onwards every iteration happens after 1 minute.

import pandas as pd
from datetime import datetime

df = pd. read_excel('data.xlsx')
Time30 = now.replace(hour=00, minute=00, second=30)

for i in df.index:
    entry = df.loc[i]
    now = datetime.now()
    current_time = now.strptime('%S')

    current_time == Time30

    name_input = browser.find_element_by_name('fullname')
   password_input = browser.find_element_by_name('password")


`````````
  • 1
    Have you tried any of the many similar answers? https://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds https://stackoverflow.com/questions/50121539/run-function-at-a-specific-time-in-python , etc. ? – Demi-Lune May 14 '22 at 13:56

0 Answers0