Sign inSign up

distopik/instabot

By distopik

Updated over 7 years ago

Image
0

159

distopik/instabot repository overview

InstaBot Docker

Instabot is a toolkit written in Python for building Instagram bots using the undocumented private API. Instabot Docker is the docker image that wrap original instabot script and expose required parameters to environment variables.

How to Build

Clone this repository using command:

git clone https://github.com/feedsbrain/instabot-docker

then follow the instruction below. I'm assuming that you already familiar with docker and docker-cli.

Using Docker CLI:

docker build -t [image-name:tag-name] .

Example:

docker build -t instabot:latest .

How to Use

You need to be faimiar with Docker CLI. For beginners, I recommended to use Kitematic. Minimum parameter to run this image is:

docker run -e IG_USER=username \
           -e IG_PASSWORD=password \
           -e IG_TAGS=portrait,landscape \
           --name username feedsbrain/instabot

Please check the list of supported parameters down below.

Parameters

ParameterDescriptionDefault value
IG_USERYour instagram username
IG_PASSWORDYour instagram password
IG_START_HOURStart program at the hour0
IG_START_MINUTEStart program at the min0
IG_END_HOUREnd program at the hour23
IG_END_MINUTEEnd program at the min59
IG_LIKE_PER_DAYNumber of photos to like per day
(over 1000 may cause throttling)
1000
IG_MEDIA_MAX_LIKEMaximum number of likes on photos to like
(set to 0 to disable)
0
IG_MEDIA_MIN_LIKEMinimum number of likes on photos to like
(set to 0 to disable)
0
IG_FOLLOW_PER_DAYUsers to follow per day0
IG_FOLLOW_TIMESeconds to wait before unfollowing18000 (5 hours)
IG_USER_MIN_FOLLOWCheck user before following them
if they have X minimum of followers.
Set 0 to disable
0
IG_USER_MAX_FOLLOWCheck user before following them
if they have X maximum of followers.
Set 0 to disable
0
IG_FOLLOW_TIME_ENABLEDWhether to wait seconds set in follow_time before unfollowingTrue
IG_UNFOLLOW_PER_DAYUsers to unfollow per day0
IG_UNFOLLOW_RECENT_FEEDIf enabled, will populate database
with users from recent feed and unfollow
if they meet the conditions.
Disable if you only want the bot
to unfollow people it has previously followed.
True
IG_UNLIKE_PER_DAYNumber of media to unlike that the bot has previously liked. Set to 0 to disable.0
IG_TIME_UNTIL_UNLIKEHow long to wait after liking media before unliking them.259200 (3 days)
IG_COMMENT_PER_DAYComments to post per day0
IG_COMMENT_SUBJECTList of word lists for comment subject generation['this','your']
IG_COMMENT_PHOTOList of word lists for comment photo generation['photo','picture']
IG_COMMENT_ADJList of word lists for comment adj generation['looks','feels']
IG_COMMENT_COMPLEMENTList of word lists for comment complement generation['great','good']
IG_COMMENT_TERMINATORList of word lists for comment terminator generation['!','!!','!!!']
IG_TAGSTags to use for finding posts by hasthag or location
(l:locationid from e.g.
https://instagram.com/explore/locations/212999109/los-angeles-california/)
['cat','l:212999109']
IG_TAGS_BLACKLISTTags to ignore when liking posts[]
IG_USER_BLACKLISTUsers whose posts to ignore.
Example: {"foo": "", "bar": ""}
type only the key and leave value empty
-- it will be populated with userids on startup.
{}
IG_MAX_LIKE_FOR_TAGHow many media of a given tag
to like at once (out of 21)
5
IG_UNFOLLOW_BREAK_MINMinimum seconds to break between unfollows15
IG_UNFOLLOW_BREAK_MAXMaximum seconds to break between unfollows30
IG_LOG_MODELogging target (0 log to console, 1 log to file, 2 no log.)0
IG_PROXYAccess instagram through a proxy.
(host:port or user:password@host:port)
IG_UNFOLLOW_NOT_FOLLOWINGUnfollow Condition:
Unfollow those who
do not follow you back
True
IG_UNFOLLOW_INACTIVEUnfollow Condition:
Unfollow those who have not
posted in a while (inactive)
True
IG_UNFOLLOW_PROBABLY_FAKEUnfollow Condition:
Unfollow accounts which skewed
follow/follower ratio (probably fake)
True
IG_UNFOLLOW_SELEBGRAMUnfollow Condition:
Unfollow (celebrity) accounts with too many
followers and not enough following
False

Credits

All credits goes to the instabot.py team as my involvement is just packaging their work to docker image as I personally use to help me to do my job maintaining multiple accounts.

Tag summary

Content type

Image

Digest

Size

343.1 MB

Last updated

over 7 years ago

docker pull distopik/instabot