Create the following file and name it test.py
.
import cronner
import random
try:
from urllib.request import urlopen
except:
from urllib import urlopen
@cronner.register('* * * * *')
def write_randint():
urlopen('https://google.com')
cronner.main()
Run this.
$ python test.py gen-cfg | crontab -
That's it.
$ pip install cronner