How to make a program on the hosting run your own?

I have a few akkov on instagram, now learn Python. Wrote a small program which itself generates a publication and post it in instagram, but for that I need to run the script yourself. The question whether it is possible as that to make so that code runs itself at a certain time? So far the only idea is to embed the code in a delay of 12 hours for example, but I suspect this is not the best solution....
Run the script with
June 10th 19 at 16:52
1 answer
June 10th 19 at 16:54
For this there is a cron under *nix and the task scheduler in windows.

Find more questions by tags Python