forked from InstaPy/InstaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.py
More file actions
25 lines (20 loc) · 707 Bytes
/
quickstart.py
File metadata and controls
25 lines (20 loc) · 707 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
from instapy import InstaPy
insta_username = ''
insta_password = ''
# set headless_browser=True if you want to run InstaPy on a server
try:
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)
session.login()
# settings
session.set_upper_follower_count(limit=2500)
session.set_do_comment(True, percentage=10)
session.set_comments(['aMEIzing!', 'So much fun!!', 'Nicey!'])
session.set_dont_include(['friend1', 'friend2', 'friend3'])
session.set_dont_like(['pizza', 'girl'])
# actions
session.like_by_tags(['natgeo'], amount=1)
finally:
# end the bot session
session.end()