-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquick_start.py
46 lines (39 loc) · 1.26 KB
/
quick_start.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# imports
from instapy import InstaPy
from instapy import smart_run
# login credentials
insta_username = 'xxxx'
insta_password = 'xxx'
comments = [
'Love your profile! @{}',
'Good job :thumbsup:',
'Merely incredible :open_mouth:',
'Great hashtags @{}?',
'Love it @{}',
'awesome @{}',
'Nice! @{}',
'Inspiring @{}',
':raised_hands: Yes!',
'Haha @{} :muscle:']
# get an InstaPy session!
# set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)
with smart_run(session):
""" Activity flow """
# general settings
session.set_dont_include(["friend1", "friend2", "friend3"])
# activity
# session.like_by_tags(["natgeo"], amount=10)
session.live_report()
print("Already visited")
session.already_Visited
session.already_liked
session.already_followed
session.follow_times
session.like_by_feed()
# # Joining Engagement Pods
# session.set_do_comment(enabled=True, percentage=35)
# session.set_comments(comments)
# session.join_pods(topic='sports', engagement_mode='no_comments')