in my python bot i want use schedule module with a while loop. I want that every 60 seconds, while loop execute one iteration and not all loop. How can i do?
This is my code
def job():
count = 0
variable1 = json.loads(requests.get(urloffertelampo).text)
while count < (len(variable1['deals']['dr'])):
***example code to execute***
count+=1
schedule.every(60).seconds.do(job)
while True:
schedule.run_pending()
time.sleep(1)