Instagram Follower & Like Bot – Open Source
İnstagram follower bot
It’s very important for the bot follower Instagram. The high number of followers in social media channels makes it possible for people to get more hits, to get higher ranks in search rankings, and to be popular in this way. Therefore, many social media sites, including Instagram, are looking for ways to increase followers. A photo-sharing site Instagram recently with video, which makes sharing possible, one of the most popular social media channels. And what does the bot follower mean?
How Does The Bot Follower Work?
For those who say how to do the bot Follower, first let’s explain what the bot Follower is. Bot Follower, a virtual follower means. In other words, real accounts that are located in various locations of the world, which are profile photos, share their own, fall into this category. However, they have been opened to gather followers. Thanks to bot Follower, your account will be monitored and your number of followers will be increased. They are cheap because they are not active and they ensure that the transaction is carried out easily. Pages or people who want to increase the number of followers with low wages often prefer this method.
Are There Any Disadvantages?
You have increased your number of followers, you have reached thousands or even tens of thousands. But if you say that there is a downside, it is that all your followers are foreigners. So when someone looks at the followers of you, they may doubt that the followers are strangers. The solution was found by the bot-Follower sites. Some sites keep track of you, as well as the people who actively use their account. Real followers are redirected to your profile so that the appear among the people who last followed you. So someone who looks at your profile doesn’t know you’re cheating. 1 month warranty period is given for the followings you receive, if the number of followings falls again, it is possible to make a request again. Some sites cancel their operations in case you receive a bot Follower from another site because they care about loyal customers.
- instagram Bot
Basic Installation:
1 2 3 4 5 | 1. git clone https://github.com/timgrossmann/InstaPy.git 2. <span class="pl-c1">cd</span> InstaPy 3. pip install <span class="pl-c1">.</span> or 3. python setup.py install |
- Download
chromedriver
for your system from here. Extract the .zip file and put it in/assets
folder.
Preferred Installation:
The best way to install InstaPy is to create a virtualenv, install InstaPy there and run it from a separate file:
1 2 3 | 1. virtualenv venv 2. <span class="pl-c1">source</span> venv/bin/activate 3. pip install git+https://github.com/timgrossmann/InstaPy.git |
If you’re not familiar with virtualenv, please read about it here and use it to your advantage. In essence, this is be the onlyPython library you should install as root (e.g., with sudo). All other Python libraries should be inside a virtualenv. Now copy/paste the quickstart.py
Python code below and run your first InstaPy script. Remember to run it with Python from the virtualenv, so from venv/bin/python
. To make sure which Python is used, run which python
, it will tell you which Python is ‘active’. Running source venv/bin/activate
will activate the correct Python to run InstaPy. To exit an activated virtualenv run `deactivate’.
Install instagram Bot
Basic setup is a good way to test the tool. At project root folder open quickstart.py
and update with your username and password.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <span class="pl-k">from</span> instapy <span class="pl-k">import</span> InstaPy insta_username <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> insta_password <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-c"># if you want to run this script on a server,</span> <span class="pl-c"># simply add nogui=True to the InstaPy() constructor</span> session <span class="pl-k">=</span> InstaPy(<span class="pl-v">username</span><span class="pl-k">=</span>insta_username, <span class="pl-v">password</span><span class="pl-k">=</span>insta_password) session.login() <span class="pl-c"># set up all the settings</span> session.set_relationship_bounds(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-k">-</span><span class="pl-c1">1.21</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">4590</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">5555</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">45</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">77</span>) session.set_do_comment(<span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">10</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">'</span>aMEIzing!<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>So much fun!!<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Nicey!<span class="pl-pds">'</span></span>]) session.set_dont_include([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>]) session.set_dont_like([<span class="pl-s"><span class="pl-pds">'</span>pizza<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>girl<span class="pl-pds">'</span></span>]) <span class="pl-c"># do the actual liking</span> session.like_by_tags([<span class="pl-s"><span class="pl-pds">'</span>natgeo<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>world<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">100</span>) <span class="pl-c"># end the bot session</span> session.end() |
Execute it:
1 | $ python quickstart.py |
instagram Bot Commenting
1 2 3 4 5 6 7 8 9 10 11 12 13 | <span class="pl-c"># default enabled=False, ~ every 4th image will be commented on</span> session.set_do_comment(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">25</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">'</span>Awesome<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Really Cool<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>I like your stuff<span class="pl-pds">'</span></span>]) <span class="pl-c"># you can also set comments for specific media types (Photo / Video)</span> session.set_comments([<span class="pl-s"><span class="pl-pds">'</span>Nice shot!<span class="pl-pds">'</span></span>], <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.set_comments([<span class="pl-s"><span class="pl-pds">'</span>Great Video!<span class="pl-pds">'</span></span>], <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Video<span class="pl-pds">'</span></span>) <span class="pl-c"># and you can add the username of the poster to the comment by using</span> session.set_comments([<span class="pl-s"><span class="pl-pds">'</span>Nice shot! @<span class="pl-c1">{}</span><span class="pl-pds">'</span></span>], <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) |
instagram Bot Following
1 2 3 4 | <span class="pl-c"># default enabled=False, follows ~ 10% of the users from the images, times=1</span> <span class="pl-c"># (only follows a user once (if unfollowed again))</span> session.set_do_follow(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">times</span><span class="pl-k">=</span><span class="pl-c1">2</span>) |
instagram Bot Following by a list
This will follow each account from a list of instagram nicknames
1 | follow_by_list(<span class="pl-v">followlist</span><span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">'</span>samantha3<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>larry_ok<span class="pl-pds">'</span></span>], <span class="pl-v">times</span><span class="pl-k">=</span><span class="pl-c1">1</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">False</span>) |
only follows a user once (if unfollowed again) would be useful for the precise targeting
sleep_delay
is used to define break time after some good following (averagely ~10
follows)
For example, if one needs to get followbacks from followers of a chosen account/group of accounts.
1 2 | accs <span class="pl-k">=</span> [<span class="pl-s"><span class="pl-pds">'</span>therock<span class="pl-pds">'</span></span>,<span class="pl-s"><span class="pl-pds">'</span>natgeo<span class="pl-pds">'</span></span>] session.follow_by_list(accs, <span class="pl-v">times</span><span class="pl-k">=</span><span class="pl-c1">1</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">False</span>) |
- You can also interact with the followed users by enabling
interact=True
which will use the configuration ofset_user_interact
setting:
1 2 3 4 5 | session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">4</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">50</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.follow_by_list(<span class="pl-v">followlist</span><span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">'</span>samantha3<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>larry_ok<span class="pl-pds">'</span></span>], <span class="pl-v">times</span><span class="pl-k">=</span><span class="pl-c1">2</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
instagram Bot Follow someone else’s followers
1 2 3 4 5 6 7 8 9 10 11 | <span class="pl-c"># Follows the followers of each given user</span> <span class="pl-c"># The usernames can be either a list or a string</span> <span class="pl-c"># The amount is for each account, in this case 30 users will be followed</span> <span class="pl-c"># If randomize is false it will pick in a top-down fashion</span> session.follow_user_followers([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">False</span>) <span class="pl-c"># default sleep_delay=600 (10min) for every 10 user following, in this case</span> <span class="pl-c"># sleep for 60 seconds</span> session.follow_user_followers([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">60</span>) |
Note: simulation takes place while running this feature.
instagram Bot Follow users that someone else is following
1 2 3 4 5 6 7 8 9 10 11 | <span class="pl-c"># Follows the people that a given users are following</span> <span class="pl-c"># The usernames can be either a list or a string</span> <span class="pl-c"># The amount is for each account, in this case 30 users will be followed</span> <span class="pl-c"># If randomize is false it will pick in a top-down fashion</span> session.follow_user_following([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">False</span>) <span class="pl-c"># default sleep_delay=600 (10min) for every 10 user following, in this case</span> <span class="pl-c"># sleep for 60 seconds</span> session.follow_user_following([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">60</span>) |
Note:simulation takes place while running this feature.
instagram Bot Follow someone else’s followers/following
1 2 3 4 5 6 7 | <span class="pl-c"># For 50% of the 30 newly followed, move to their profile</span> <span class="pl-c"># and randomly choose 5 pictures to be liked.</span> <span class="pl-c"># Take into account the other set options like the comment rate</span> <span class="pl-c"># and the filtering for inappropriate words or users</span> session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">5</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">50</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.follow_user_followers([<span class="pl-s"><span class="pl-pds">'</span>friend1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>friend3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
instagram Bot Follow by Tags
1 2 3 | <span class="pl-c"># Follow user based on hashtags (without liking the image)</span> session.follow_by_tags([<span class="pl-s"><span class="pl-pds">'</span>tag1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>tag2<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>) |
instagram Bot Follow the likers of photos of users
This will follow the people those liked photos of given list of users
1 | session.follow_likers ([<span class="pl-s"><span class="pl-pds">'</span>user1<span class="pl-pds">'</span></span> , <span class="pl-s"><span class="pl-pds">'</span>user2<span class="pl-pds">'</span></span>], <span class="pl-v">photos_grab_amount</span> <span class="pl-k">=</span> <span class="pl-c1">2</span>, <span class="pl-v">follow_likers_per_photo</span> <span class="pl-k">=</span> <span class="pl-c1">3</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">False</span>) |
in this case 2 random photos from each given user will be analyzed and 3 people who liked them will be followed, so 6 follows in total
The usernames
can be any list
The photos_grab_amount
is how many photos will I grat from users profile and analyze who liked it
The follow_likers_per_photo
is how many people to follow per each photo
randomize=False
will take photos from newes, true will take random from first 12
sleep_delay
is used to define break time after some good following (averagely ~10
follows)
- You can also interact with the followed users by enabling
interact=True
which will use the configuration ofset_user_interact
setting:
1 2 3 4 5 | session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">2</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.follow_likers ([<span class="pl-s"><span class="pl-pds">'</span>user1<span class="pl-pds">'</span></span> , <span class="pl-s"><span class="pl-pds">'</span>user2<span class="pl-pds">'</span></span>], <span class="pl-v">photos_grab_amount</span> <span class="pl-k">=</span> <span class="pl-c1">2</span>, <span class="pl-v">follow_likers_per_photo</span> <span class="pl-k">=</span> <span class="pl-c1">3</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
instagram Bot Follow the commenters of photos of users
This will follow the people those commented on photos of given list of users
1 | session.follow_commenters([<span class="pl-s"><span class="pl-pds">'</span>user1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">100</span>, <span class="pl-v">daysold</span><span class="pl-k">=</span><span class="pl-c1">365</span>, <span class="pl-v">max_pic</span> <span class="pl-k">=</span> <span class="pl-c1">100</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">False</span>) |
in this case (max 100 newest photos & maximum 365 days old) from each given user will be analyzed and 100 people who commented the most will be followed
The usernames
can be any list
The amount
is how many people to follow
The daysold
will only take commenters from photos no older than daysold
days
The max_pic
will limit number of photos to analyze
sleep_delay
is used to define break time after some good following (averagely ~10
follows)
- You can also interact with the followed users by enabling
interact=True
which will use the configuration ofset_user_interact
setting:
1 2 3 4 5 | session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">3</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">32</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Video<span class="pl-pds">'</span></span>) session.follow_commenters([<span class="pl-s"><span class="pl-pds">'</span>user1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">100</span>, <span class="pl-v">daysold</span><span class="pl-k">=</span><span class="pl-c1">365</span>, <span class="pl-v">max_pic</span> <span class="pl-k">=</span> <span class="pl-c1">100</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
Interact with specific users
1 2 3 4 5 6 7 8 | <span class="pl-c"># Interact with specific users</span> <span class="pl-c"># set_do_like, set_do_comment, set_do_follow are applicable</span> session.set_do_follow(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">50</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">"</span>Cool<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Super!<span class="pl-pds">"</span></span>]) session.set_do_comment(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">80</span>) session.set_do_like(<span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>) session.interact_by_users([<span class="pl-s"><span class="pl-pds">'</span>user1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user2<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>user3<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">5</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) |
Interact with users that someone else is following
1 2 3 4 5 6 7 8 9 | <span class="pl-c"># Interact with the people that a given user is following</span> <span class="pl-c"># set_do_comment, set_do_follow and set_do_like are applicable</span> session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">5</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">50</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.set_do_follow(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>) session.set_do_like(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">"</span>Cool<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Super!<span class="pl-pds">"</span></span>]) session.set_do_comment(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">80</span>) session.interact_user_following([<span class="pl-s"><span class="pl-pds">'</span>natgeo<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
Note: simulation takes place while running this feature.
Interact with someone else’s followers
1 2 3 4 5 6 7 8 9 | <span class="pl-c"># Interact with the people that a given user is following</span> <span class="pl-c"># set_do_comment, set_do_follow and set_do_like are applicable</span> session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">5</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">50</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) session.set_do_follow(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>) session.set_do_like(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">70</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">"</span>Cool<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Super!<span class="pl-pds">"</span></span>]) session.set_do_comment(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">80</span>) session.interact_user_followers([<span class="pl-s"><span class="pl-pds">'</span>natgeo<span class="pl-pds">'</span></span>], <span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">10</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
Note: simulation takes place while running this feature.
Interact on posts at given URLs
Like, comment, follow on the post in the links provided, also can interact the owner of the post
1 | session.interact_by_URL(<span class="pl-v">urls</span><span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">"</span>some/URL/1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>some/URL/2<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>other/URL<span class="pl-pds">"</span></span>], <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
To use, define all of the interaction settings
and start the feature right away!
1 2 3 4 5 6 7 8 9 | <span class="pl-c">#define interaction settings</span> session.set_do_like(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">94</span>) session.set_do_comment(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">24</span>) session.set_comments([<span class="pl-s"><span class="pl-pds">"</span>Masterful shot<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Chilling!<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Unbelievably great…<span class="pl-pds">"</span></span>]) session.set_do_follow(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">44</span>) session.set_user_interact(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">6</span>, <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">percentage</span><span class="pl-k">=</span><span class="pl-c1">72</span>, <span class="pl-v">media</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>Photo<span class="pl-pds">'</span></span>) <span class="pl-c">#start the feature</span> session.interact_by_URL(<span class="pl-v">urls</span><span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">"</span>Fv0J4AJ3Y7r/?taken-at=628416252<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Vb0D4bJgY7r<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>Dj0J4VJgY7r<span class="pl-pds">"</span></span>], <span class="pl-v">randomize</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">interact</span><span class="pl-k">=</span><span class="pl-c1">True</span>) |
Parameters:
urls
:
Contains the URLs of the posts to be interacted.
- You can provide URLs in these formats:
full:"https://www.IG.com/p/Aj0J4bJDY7r/?taken-at=128316221"
just post link:"https://www.IG.com/p/Aj0J4bJDY7r/"
just post handle:"Aj0J4bJDY7r/?taken-at=128316221"
just post ID:"Aj0J4bJDY7r"
randomize
:
Shuffles the order of the URLs in the given list before starts to interact.
interact
:
Use it if you like to also interact the post owner after doing interactions on the post itself.
instagram bot Unfollowing
Unfollows the accounts you’re following
It will unfollow ~10
accounts and sleep for ~10
minutes and then will continue to unfollow…
There are 4
Unfollow methods available to use:
|>
customList |>
InstapyFollowed |>
nonFollowers |>
allFollowing
1 – Unfollow specific users from a CUSTOM list (has 2
tracks- "all"
and "nonfollowers"
):
when track is "all"
, it will unfollow all of the users in a given list;
1 2 | custom_list <span class="pl-k">=</span> [<span class="pl-s"><span class="pl-pds">"</span>user_1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_2<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_49<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user332<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user50921<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_n<span class="pl-pds">"</span></span>] session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">84</span>, <span class="pl-v">customList</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, custom_list, <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>), <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>RANDOM<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">55</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>) |
if track is "nonfollowers"
, it will unfollow all of the users in a given list WHO are not following you back;
1 2 | custom_list <span class="pl-k">=</span> [<span class="pl-s"><span class="pl-pds">"</span>user_1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_2<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_49<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user332<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user50921<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user_n<span class="pl-pds">"</span></span>] session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">84</span>, <span class="pl-v">customList</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, custom_list, <span class="pl-s"><span class="pl-pds">"</span>nonfollowers<span class="pl-pds">"</span></span>), <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>RANDOM<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">55</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>) |
- PRO:
customList
method can any kind of iterable container, such aslist
,tuple
orset
.
2 – Unfollow the users WHO was followed by InstaPy
(has 2
tracks- "all"
and "nonfollowers"
):
again, if you like to unfollow all of the users followed by InstaPy, use the track– "all"
;
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">60</span>, <span class="pl-v">InstapyFollowed</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>), <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>FIFO<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">90</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">501</span>) |
but if you like you unfollow only the users followed by InstaPy WHO do not follow you back, use the track– "nonfollowers"
;
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">60</span>, <span class="pl-v">InstapyFollowed</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, <span class="pl-s"><span class="pl-pds">"</span>nonfollowers<span class="pl-pds">"</span></span>), <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>FIFO<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">90</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">501</span>) |
3 – Unfollow the users WHO do not
follow you back:
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">126</span>, <span class="pl-v">nonFollowers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>RANDOM<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">42</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">655</span>) |
4 – Just
unfollow, regardless of a user follows you or not:
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">40</span>, <span class="pl-v">allFollowing</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>LIFO<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">3</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">450</span>) |
Parameters (all of these parameters apply to all of the 4 methods available):
style
You can choose unfollow style as "FIFO"
(First-Input-First-Output) OR "LIFO"
(Last-Input-First-Output) OR "RANDOM"
.
- with
"FIFO"
, it will unfollow users in the exact order they are loaded ("FIFO"
is the default style unless you change it); - with
"LIFO
” it will unfollow users in the reverse order they were loaded; - with
"RANDOM"
it will unfollow users in the shuffled order;
unfollow_after
By using this, you can unfollow users only after following them certain amount of time.
it will help to provide seamless unfollow activity without the notice of the target user
To use it, just add unfollow_after
parameter with the desired time interval, e.g.,
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">94</span>, <span class="pl-v">InstapyFollowed</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>), <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>RANDOM<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">48</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>) |
will unfollow users only after following them 48
hours (2
days).
- Since
unfollow_after
s value is in seconds, you can simply give itunfollow_after=3600
to unfollow after3600
seconds.
Yeah, values kind of1*60*60
– which is also equal to1
hour or3600
seconds, is much more easier to use.
Sure if you like to not use it, give the value of None
– unfollow_after=None
.
sleep_delay
Sleep delay sets the time it will sleep after every ~10
unfollows (default delay is ~10
minutes).
NOTE: You should know that, in one RUN, unfollow_users
feature can take only one method from all 4
above.
That’s why, it is best to disable other 3
methods while using a one:
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">200</span>, <span class="pl-v">customList</span><span class="pl-k">=</span>(<span class="pl-c1">True</span>, [<span class="pl-s"><span class="pl-pds">"</span>user1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user2<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user88<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>user200<span class="pl-pds">"</span></span>], <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>), <span class="pl-v">InstapyFollowed</span><span class="pl-k">=</span>(<span class="pl-c1">False</span>, <span class="pl-s"><span class="pl-pds">"</span>all<span class="pl-pds">"</span></span>), <span class="pl-v">nonFollowers</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">allFollowing</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>FIFO<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">22</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>) |
here the unfollow method- customList is used
OR just keep the method you want to use and remove other 3 methods from the feature
1 | session.unfollow_users(<span class="pl-v">amount</span><span class="pl-k">=</span><span class="pl-c1">200</span>, <span class="pl-v">allFollowing</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">style</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>FIFO<span class="pl-pds">"</span></span>, <span class="pl-v">unfollow_after</span><span class="pl-k">=</span><span class="pl-c1">22</span><span class="pl-k">*</span><span class="pl-c1">60</span><span class="pl-k">*</span><span class="pl-c1">60</span>, <span class="pl-v">sleep_delay</span><span class="pl-k">=</span><span class="pl-c1">600</span>) |
here the unfollow method- alFollowing is used
Don’t unfollow active users
1 2 3 | <span class="pl-c"># Prevents unfollow followers who have liked one of your latest 5 posts</span> session.set_dont_unfollow_active_users(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">posts</span><span class="pl-k">=</span><span class="pl-c1">5</span>) |
Interactions based on the number of followers and/or following a user has
This is used to check the number of followers and/or following a user has and if these numbers either exceed the number set OR does not pass the number set OR if their ratio does not reach desired potency ratio then no further interaction happens
1 2 3 4 5 6 7 | session.set_relationship_bounds(<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-c1">1.34</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">8500</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">4490</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">100</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">56</span>) |
Use enabled=True
to activate this feature, and enabled=False
to deactivate it, any time
delimit_by_numbers
is used to activate & deactivate the usage of max & min values
potency_ratio
accepts values in 2 formats according to your style: positive & negative
potency_ratio
with POSITIVE values can be used to route interactions to only potential (real) users WHOSEfollowers count is higher than following count (e.g.,potency_ratio = 1.39
)
find desiredpotency_ratio
with this formula:potency_ratio
== followers count / following count (use desired counts)
e.g., target user has 5000
followers & 4000
following and you set potency_ratio=1.35
.
Now it will not interact with this user, cos the user’s relationship ratio is 5000/4000==1.25
and 1.25
is belowdesired potency_ratio
of 1.35
potency_ratio
with NEGATIVE values can be used to route interactions to only massive followers WHOSEfollowing count is higher than followers count (e.g.,potency_ratio = -1.42
)
find desiredpotency_ratio
with this formula:potency_ratio
== following count / followers count (use desired counts)
e.g., target user has 2000
followers & 3000
following and you set potency_ratio = -1.7
.
Now it will not interact with this user, cos the user’s relationship ratio is 3000/2000==1.5
and 1.5
is belowdesired potency_ratio
of 1.7
(note that, negative -
sign is only used to determine your style, nothing more)
There are 3 COMBINATIONS available to use:
- 1. You can use
potency_ratio
or not (e.g.,potency_ratio=None
,delimit_by_numbers=True
) – will decide only by your pre-defined max & min values regardless of thepotency_ratio
1 | session.set_relationship_bounds (<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-c1">None</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">22668</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">10200</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">400</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">240</span>) |
- 2. You can use only
potency_ratio
(e.g.,potency_ratio=-1.5
,delimit_by_numbers=False
) – will decide perpotency_ratio
regardless of the pre-defined max & min values
1 | session.set_relationship_bounds (<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-k">-</span><span class="pl-c1">1.5</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">False</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">400701</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">90004</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">963</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">2310</span>) |
apparently, once delimit_by_numbers
gets False
value, max & min values do not matter
- 3. You can use both
potency_ratio
and pre-defined max & min values together (e.g.,potency_ratio=2.35
,delimit_by_numbers=True
) – will decide perpotency_ratio
& your pre-defined max & min values
1 | session.set_relationship_bounds (<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-c1">2.35</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">10005</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">24200</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">77</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">500</span>) |
All of the 4 max & min values are able to freely operate, e.g., you may want to only delimit max_followers
and min_following
(e.g., max_followers=52639
, max_following=None
, min_followers=None
, min_following=2240
)
1 | session.set_relationship_bounds (<span class="pl-v">enabled</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">potency_ratio</span><span class="pl-k">=</span><span class="pl-k">-</span><span class="pl-c1">1.44</span>, <span class="pl-v">delimit_by_numbers</span><span class="pl-k">=</span><span class="pl-c1">True</span>, <span class="pl-v">max_followers</span><span class="pl-k">=</span><span class="pl-c1">52639</span>, <span class="pl-v">max_following</span><span class="pl-k">=</span><span class="pl-c1">None</span>, <span class="pl-v">min_followers</span><span class="pl-k">=</span><span class="pl-c1">None</span>, <span class="pl-v">min_following</span><span class="pl-k">=</span><span class="pl-c1">2240</span>) |
via: Github