title: Schedule Python with while loop
body: <p>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?</p>
  <p>This is my code</p>
  <pre><code> def job():
          count = 0
          variable1 = json.loads(requests.get(urloffertelampo).text)
          while count &lt; (len(variable1['deals']['dr'])):
              ***example code to execute***
              count+=1
  
      schedule.every(60).seconds.do(job)
  
      while True:
          schedule.run_pending()
          time.sleep(1)
  </code></pre>