Python 3 Instagram Bot Login Class Script to Automate Likes and Comment and Follow/Unfollow Users Full Project For Beginners

You are currently viewing Python 3 Instagram Bot Login Class Script to Automate Likes and Comment and Follow/Unfollow Users Full Project For Beginners

 

Welcome folks today in this blog post we will be building a `python instagram login bot which will automatically like comment and follow/unfollow users. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started you need to make an instabot.py file and copy paste the following code

 

instabot.py

 

 

 

python instabot.py

 

After you clone it you will see the below directory structure as shown below

 

 

 

Instagram bot. It works without instagram api, need only login and password. Write on python.

After Instagram close api (new review process), there were some problem, to make auto – like, comment and follow.

If your app can’t pass new review process, this is solution!

This InstaBot work by https://www.instagram.com and need only your login and password.

 

Usage

####1) Login: Login automatic, when you create InstaBot class element:

 

 

####2) Set likes: How many likes set bot in one day.

Don’t like media (photo or video) if it have more than more_than_likes likes. If media have too much likes – your like have not feedback.

Tag list to like.

Like 1 to max_like_for_one_tag times by row.

You can like one tag:

Like 4 times:

Or you can choose auto_mod (like all tags from setting by loop):

####3) Set comments:

For example:

####4) Follow and unfollow: Follow:

Unfollow:

For example (follow and unfollow user with id 111111111):

####5) Else: Log mod: log_mod=0 log to console, log_mod=1 log to file, log_mod=2 no log.

####6) Logout from exist session:

Usage examples

Standard use (will like by loop, all default tag):

Standard use with your tag (will like by loop, all your tag):

Standard use with change defaul settings (you should know what you do!):

Get media_id buy one tag 'python' and like 4 of them:

Requirements

Python

Instagram account

instabot.py file must be in UTF-8 encoding if you use Python 3, or ASCII in Python 2 (PEP)!

How to install and run:

  1. You should download and install Python on your OS.
  2. You should install Python lib requests. Run command pip3 install requests if you use Python 3, or type pip install requests if you use Python 2.
  3. Download instabot.py and save it in right encoding!
  4. Add the code to the end of the file (like in usage examples), depending on how you want to use bot.
  5. Run program python3 instabot.py or python instabot.py on MAC and Linux, or python instabot.py on Windows.

Leave a Reply