|
| 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') |
0 commit comments