Write a bot for Instagram

I want to try to make a bot for instagram, something like here with a lot of functions to choose from. I found a library on github for php, but as far as I know php does not have multithreading, it is important for me to do, for example, cheat users in the background, so that you can continue to move around the site or even close it, and it in turn will run until it reaches its limit. In the first link, everything is organized like this, in what language can this be implemented? I think about python, what can you tell me about this?

Author: Mikhail Kashkin, 2019-05-16

1 answers

Here is a working example of a bot making likes in the background

import argparse
from instabot import Bot

parser = argparse.ArgumentParser(add_help=True)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
parser.add_argument('-location', type=str, help='location')
parser.add_argument('-amount', type=str, help='amount')
args = parser.parse_args()

bot = Bot()
bot.login(username=args.u, password=args.p,
          proxy=args.proxy)

bot.like_location_feed(args.location, amount=args.amount)

To get it up and running make sure you have Python 3 installed and follow these steps:

  • Create a working folder "MySuperBot" and save the proposed code to a file go_likes.py
  • Initiate a working environment in it using python -m venv venv
  • Activate the virtual environment, this will need to be done every time you want to work with the terminal. On Linux and On macOS, this is done with the source venv/bin/activate command, on Windows .\venv\Scripts\activate
  • Install the desired package pip install -U instabot
  • Now you can start the cheat python go_likes.py -u USERNAME -p PASSWORD -amount 400.

The program will work in the terminal until you close it and will make no more than 400 likes per day. Please note that if you have a new account, it is better to start with 50-100 and gradually bring it up to 500 within a few weeks. More may cause alarm. This program automatically likes all new posts in your blog. fide.

More detailed documentation for the instabot library in Russian.

 1
Author: Mikhail Kashkin, 2019-05-17 20:03:17