scheduler.py 249 B

1234567891011121314
  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()