This is a neat idea, but you should double-check the ToS for Instagram.
There is some pretty clear language in there about not using their API to automatically interact with other accounts (including liking & commenting on photos) unless you have an existing business relationship with the accounts you're posting to (not the account you're impersonating).