Create the following file and name it test.py.
importcronnerimportrandomtry:
fromurllib.requestimporturlopenexcept:
fromurllibimporturlopen@cronner.register('* * * * *')defwrite_randint():
urlopen('https://google.com')
cronner.main()Run this.
$ python test.py gen-cfg | crontab -That's it.
$ pip install cronner