Insta Bot

23,642

6

14

In this tutorial we will see how to use instagram bot which likes, comments, follow and un-follow users automatically. This tutorial will work on most of the platforms of debian/linux. It is tested on Raspberry Pi , Kali and Ubuntu.

We will use the InstaBot library. This library is written in python and it works without the new Instagram API. So that you wont need to give permission to integrate instagram API or anything. This will store your credential (Username and Password) in your local computer only.

Requirements: Min. Python 2.7, Working instagram account , instabot.py file must be in UTF-8 encoding if you use Python 3, orASCII in Python 2 (PEP)!

To support the project go to the Git link provided and donate to LevPasha , Share and like this tutorial.

Step 1: Setting Up

1) Download and Set up Python and pip to your computer.

$ sudo apt-get install python3

$ sudo apt-get install pip3

2) Install python lib request.

for python 3, run $ pip3 install requests

for earlier pythons, run $ pip install requests

3) Install InstaBot Git Repository.

$ git clone git://github.com/LevPasha/instabot.py.git

4) Edit Example.py or create customized python file as per your need. (Next Step)

Step 2: Getting Started

Modify Example.py.

Example.py is ready to go example file, you can enter your credentials (Username & Password) and lift off. But there are few things I am adding you should know before that. For more details read Git repository documentation,

To test if you installed everything right please open editor and type this code. replace username and password with your actual one.

Log in to your instagram:

--------------------

#!/usr/bin/env python# -*- coding: utf-8 -*-
from instabot import InstaBot

bot = InstaBot('login', 'password')
bot.auto_mod()

-----------------------------

If everything is alright you'll see Login successful. and then you are good to go.

----------------------------

bot = InstaBot('login', 'password',like_per_day=1000,

like_per_day=1000,

media_max_like=0,

media_min_like=0,

follow_per_day=0,

follow_time=5*60*60,

unfollow_per_day=0,

comments_per_day=0,

tag_list=['cat', 'car', 'dog'],

max_like_for_one_tag = 5,

unfollow_break_min = 15,

unfollow_break_max = 30,

log_mod = 0,

proxy='')

----------------------------

Like_per_day , as instagram has limit of 1000 likes a day , you should not exceed it more than 1000. if you want to like more in few hours and use those 1000 likes in ex 6 hours, you can edit according to that. but if you'll exceed you might get reported and face the ban.

tag_list=['#tag1', '#tag2', '#tag3'], To reach to specific audience you can use this. By adding tags , bot will only like and follow the media in which provided #tags are used.

follow/comment_per_day=0, This will follow or comment as per the usage. and you can replace 0 with number as many as you want.(I will suggest you to play inside couple of hundreds for this.)

for comments there are predefined code added, It will stop you from comment bans and use different comments each time when it'll run.

follow_time=5*60*60, Following time. After the 5 Mins bot will follow the each user.

log_mod=0, If you want to print or create log of the things to track the activity please use this.

Refer a table in official documentation for detailed description.

Step 3: Run. (Go)

After you finish setting up the things I mentioned earlier, you are ready to go.

get into the directory and type

$ python3 example.py

if you have another version of python or a different file name use that.

Image attached is running same scripts for 2 instagram accounts to reach to more audience.

I tested on Linux/Debian including Raspberry Pi B+/2/3 models.(By git documentation this works on all platforms including Windows) Please write in comments if you run it successfully on other platforms or face any problems.

This is my first instructable. Please comment, share and follow. Also give your suggestions. I am working on reflecting GPIO pins of Raspberry Pi via instagram, so it will be my next tutorial coming soon. Follow to stay tuned and updated.

(I will add pictures in tutorial soon.)

Share

    Recommendations

    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure

    14 Discussions

    0
    None
    dosmangos

    6 months ago

    I keep getting errors while trying to run this on my Raspberry Pi 3. It keeps saying that Module Error, no "fake_useragent"

    0
    None
    ToluO7

    Question 1 year ago

    How about giving the bot links of pictures to like

    0
    None

    I have heard of people using bots like this to automatically enter a lot of social media contests and win a ton of random prizes.

    2 replies
    0
    None
    Shan0oDIY Hacks and How Tos

    Reply 2 years ago

    Yes Many. This is best tool for marketing also.
    You can reach to like minded audience.

    0
    None
    EARTHNShan0o

    Reply 1 year ago

    how to enter various contests with this? Well I think it requires to create a new type of script which for newbies is tricky

    i keep getting an error with line 12 of example.py and 16 of instabot.py. from instabot import InstaBot is line 12 of example.py and import requests is line 16 of instabot.py please help it wont work :(

    2 replies
    0
    None
    Kohoraaanonymousdarkwebuser

    Reply 1 year ago

    The problem is on the part 2) of the Step 1 Setting up. You need to install request to your system as described. For python 3, run $ pip3 install requests

    for earlier pythons, run $ pip install requests

    0
    None
    djsnowman

    1 year ago

    is it works well at this time?

    0
    None
    Shan0otheubermensche

    Reply 2 years ago

    They work pretty nice, there are pre-fed words in code which generates different comments everytime.

    0
    None
    theubermenscheShan0o

    Reply 2 years ago

    I've looked through some of the code, but I don't see where to edit the comments. I also noticed this in the instructions from Github, but I wasn't sure how to implement it or where to place it.

    Set comments:
    bot.comment('media_id', 'comment')

    For example:


    bot.comment(11111111111111111111, 'Cool!')
    0
    None
    CaporalJ

    2 years ago

    I get this and nothing happens

    Traceback (most recent call last):

    File "C:\Python\Python35-32\instabot.py-master\example.py", line 18, in <modul

    e>

    log_mod=0)

    File "C:\Python\Python35-32\instabot.py-master\instabot.py", line 157, in __in

    it__

    self.populate_user_blacklist()

    File "C:\Python\Python35-32\instabot.py-master\instabot.py", line 167, in popu

    late_user_blacklist

    id_user = all_data['user']['media']['nodes'][0]['owner']['id']

    IndexError: list index out of range

    1 reply
    0
    None
    Shan0oCaporalJ

    Reply 2 years ago

    try doing update and upgrade , then clone again in new folder. If that doesn't work let me know.