forked from InstaPy/InstaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_bot.py
More file actions
27 lines (22 loc) · 931 Bytes
/
docker_bot.py
File metadata and controls
27 lines (22 loc) · 931 Bytes
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
from instapy import InstaPy
# Write your automation here
# Stuck ? Look at the github page or the examples in the examples folder
insta_username = 'Aliensearchparty'
insta_password = 'Sodapop74'
dont_like = []
ignore_words = []
friend_list = []
# If you want to enter your Instagram Credentials directly just enter
# username=<your-username-here> and password=<your-password> into InstaPy
# e.g like so InstaPy(username="instagram", password="test1234")
bot = InstaPy(username=insta_username, password=insta_password, selenium_local_session=False)
bot.set_selenium_remote_session(selenium_url='http://selenium:4444/wd/hub')
bot.login()
# bot.set_upper_follower_count(limit=2500)
bot.set_do_comment(True, percentage=100)
bot.set_comments([u'👽👽👽'])
# bot.set_dont_include(friend_list)
# bot.set_dont_like(dont_like)
# bot.set_ignore_if_contains(ignore_words)
bot.like_by_tags([u'👽', '#alien'], amount=100)
bot.end()