Half-Automated Instagram Marketing: What I learned after writing 1000 DMs


Recently I released Increaser web app. After a week of not coding any features for it, I decided to come back and implement a few. But the problem arose. There were not so many people using an app, and I didn’t know what the features they would like to see. So I decided to gather feedback some way. I wanted to know what other peoples see lacking in the app and what can be improved.

Messaging to strangers on Instagram

The first thing that comes to mind was to start making DMs on Instagram. I selected a few hashtags, such as #pomodorotechnique, #programming, #coding, #studying, went to the search page and start messaging.

The first days it was a fun thing to do, and messages like this were quite encouraging.

After a few days yet I faced a problem. After scrolling the feed, opening the author profile, clicking on the message button, appears that I already tried to reach him. So I started thinking about how this manual process can be automated.


The only way you can type a message on Instagram is by using a mobile app. And efforts to make such automation not worth it. The only part worth automation is the process of finding peoples to reach.

The first thing that came to mind was the Instagram API or Instagram Graph API. But after some investigation, it has become clear that there is no way to use APIs. The first one is deprecated and to use the second one you need to apply with real application.

The only way left is scraping. After some research, I found a python library for making all kinds of things with a browser version of Instagram. After some playing with the library I came to the algorithm that has such steps:

  1. Login Instagram.
  2. Shuffle array of tags.
  3. Go to the search page and try different tags, for each profile on the feed check if a user not reached or ignored, add to the list and like the post.
  4. Subscribe to each profile since it will be easier to find in subscribers rather than in global people search.
  5. For each profile prompt me to move it to one of the two categories — reached or ignored.
  6. Unsubscribe from peoples in the list.

Information about users saved to .json file after execution. Since I already wrote to 200-something peoples, it took me two hours to fill the initial state.

The state keeps in reached array both username and tags of the liked post. This information allows me to write the script that will go over users that answered my message and count the number of occurrences for each tag. It allows me to find new tags for the search process.


It took me a good piece of time to write messages to 1000 peoples and only a 10% answer.

I received some useful feedback, and it gives me an idea of what features I should implement. But I doubt that this way of getting feedback can be effective. Maybe I will optimize this script a little bit in the future before running a new session of reaching out.

If you have some suggestions or feedback leave a comment:) All the code you can find in the repository.

Reach the next level of focus and productivity with increaser.org.




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store