scheduler.py 246 B

12345678910111213
  1. from crontab import CronTab
  2. import requests
  3. def ping():
  4. cron = CronTab(tabfile='filename.tab')
  5. job = cron.new(command='python C:\\Projekte\\Python\\request.py')
  6. job.minute.every(1)
  7. cron.write()
  8. cron.run_scheduler()
  9. ping()