1
2 Comments

How to post on Instagram via a script?

Hi there,
I hope everyone is holding well during this difficult time. So, today I was got a little side-tracked from my original project and started working on something else. An Instagram bot. Now, wait don't bite me. I know there are many, but I wanted to try by myself.
This is part of a bigger problem. Half of it I have solved the remaining is this:

I have some images on my Google Drive and now want to post on Instagram from my account.

I couldn't find any working solution. It is broken as Instagram is very strict against automation. Every time there is one problem or another.

I think the major problem is that I am trying to post with Google Colab. It posts from a new location i.e. Google HQ(Mountain View, CA). Instagram flags it as suspicious access.

Finally, what I am looking for is a
Javascript or a python script that can post images on my account from google drive without getting banned obviously.

You may ask why I am not using apps that are already there? : because I want to run these scripts as CRON jobs on an EC2 instance or something else on in VM on AWS or GCP so that I don't have to worry about running them manually. Once set up, they would regularly post on my behalf.

Thanks for reading this.

on March 25, 2020
  1. 2

    I see that the problem occurs when the post is done using Google Colab. Correct me if am wrong but am going to assume that when it's done from your server, then no problem. In this case you can use Google drive's API https://developers.google.com/drive/api/v3/downloads ( pick the library for your programming language of choice ). With drive's api you can simply download whatever you want from your drive and post it from your server. That way everything is done from the same ip/location and ofc this can be done as a cron job

  2. 1

    This comment was deleted 6 years ago

      1. 1

        This comment was deleted 6 years ago

    1. 1

      This comment was deleted 6 years ago