Your question needs two answers.
1. If you don't have a good computer that you can leave on 24/7, rent a VPS.
2. Once you have the program running, make sure you DON'T have it doing tasks 24/7. Set hours to run, the program has that option.
If you have the program doing tasks 24/7 you WILL be banned by Instagram. No human being is doing tasks on Instagram 24/7.