Skip to content

Commit fabd30f

Browse files
committed
added instagram_bot
1 parent 98d3698 commit fabd30f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

InstagramBot/Instabot.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# imports
2+
from instapy import InstaPy
3+
from instapy import smart_run
4+
5+
# login credentials
6+
insta_username = '' #type your id
7+
insta_password = '' #type your password
8+
9+
comments = ['Nice shot! @{}',
10+
'I love your profile! @{}',
11+
'Your feed is an inspiration :thumbsup:',
12+
'Just incredible :open_mouth:',
13+
'What camera did you use @{}?',
14+
'Love your posts @{}',
15+
'Looks awesome @{}',
16+
'Getting inspired by you @{}',
17+
':raised_hands: Yes!',
18+
'I can feel your passion @{} :muscle:']
19+
20+
# get an InstaPy session!
21+
# set headless_browser=True to run InstaPy in the background
22+
session = InstaPy(username=insta_username,
23+
password=insta_password,
24+
headless_browser=False)
25+
26+
with smart_run(session):
27+
""" Activity flow """
28+
# general settings
29+
session.set_dont_include(["friend1", "friend2", "friend3"])
30+
31+
# activity
32+
session.like_by_tags(["games,party,summer"], amount=10)
33+
34+
# Joining Engagement Pods
35+
session.set_do_comment(enabled=True, percentage=35)
36+
session.set_comments(comments)
37+
session.join_pods(topic='sports', engagement_mode='no_comments')

InstagramBot/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Install instapy
2+
# pip install instapy
3+
# edit credential in the script
4+
# run the script

0 commit comments

Comments
 (0)