Instagram auto like bot for personal use, implemented using Instapy and instaloader.
Dependencies listed in requirements.txt
. Install using pip3 install -r requirements.txt
. A Firefox browser also needs to be installed on the machine.
To auto like n
posts, run python3 IG_Autolike.py -u your_username -p your_password -a n
. The program will only like posts posted by people who you follow and follows you, unless otherwise specified in the whiteList
parameter in Config.yaml
. There are additional hyperparameter one can specify in Config.yaml
, the variable names should be self explanatory.
The script also provides functionalities to unfollow nonfollowers followed by the user. Exceptions can be made by adding whitelist usernames to the unfollowWhiteList
array in Config.yaml
. To use the following management functionality, run python3 IG_Autolike.py -u your_username -p your_password -f
.
The function session.like_by_feed
is experiencing errors since Instagram has updated their webpage structures, that for any instagram post's window object, window.__additionalData
is now empty. This InstaPy Issue has extensive discussion regarding this problem. Currently, there is a temporary bug fix that has not been merged into main
. It works fine for me. To install the fix, run pip3 install -I https://github.com/schealex/InstaPy/zipball/develop