Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This template is written by @cormo1990
- What does this quickstart script aim to do?
- - Basic follow/unfollow activity.
- NOTES:
- - I don't want to automate comment and too much likes because I want to do
- this only for post that I really like the content so at the moment I only
- use the function follow/unfollow.
- - I use two files "quickstart", one for follow and one for unfollow.
- - I noticed that the most important thing is that the account from where I
- get followers has similar contents to mine in order to be sure that my
- content could be appreciated. After the following step, I start unfollowing
- the user that don't followed me back.
- - At the end I clean my account unfollowing all the users followed with
- InstaPy.
- """
- # imports
- from instapy import InstaPy
- from instapy import smart_run
- # login credentials
- insta_username = ''
- insta_password = ''
- # get an InstaPy session!
- # set headless_browser=True to run InstaPy in the background
- session = InstaPy(username=insta_username,
- password=insta_password,
- headless_browser=True)
- with smart_run(session):
- """ Activity flow """
- # general settings
- session.set_quota_supervisor(enabled=True,
- stochastic_flow=True,
- peak_likes=(100, None),
- peak_comments=(21, None),
- peak_follows=(100, 120))
- peak_unfollows=(100, 250)
- session.set_action_delays(enabled=True,
- like=6,
- comment=15,
- follow=26,
- unfollow=36)
- session.set_relationship_bounds(enabled=True,
- delimit_by_numbers=True,
- max_followers=4590,
- min_followers=45,
- min_following=77)
- session.set_dont_include(["friend1", "friend2", "friend3"])
- session.set_dont_like(["pizza", "#store"])
- # activities
- """ Massive Follow of users followers (I suggest to follow not less than
- 3500/4000 users for better results)...
- """
- #session.follow_user_followers(['unh_alphachiomega', 'scope_unh', 'unh_ato'], amount=10,
- # randomize=False, interact=False, sleep_delay=701)
- """ First step of Unfollow action - Unfollow not follower users...
- """
- session.unfollow_users(amount=750, nonFollowers=True, style="FIFO", unfollow_after=1*60*60, sleep_delay=655)
- """ Second step of Massive Follow...
- """
- #session.follow_user_followers(['unhfieldhockey', 'unhdanceteam', 'unh_sigmanu'], amount=25,
- # randomize=False, interact=False, sleep_delay=701)
- """ Clean all followed user - Unfollow all users followed by InstaPy...
- """
- #session.unfollow_users(amount=100, InstapyFollowed=(True, "all"),
- # style="FIFO", unfollow_after=24 * 60 * 60,
- # sleep_delay=601)
- """ Joining Engagement Pods...
- """
- photo_comments = ['Nice shot! @{}',
- 'Awesome! @{}',
- 'Cool :thumbsup:',
- 'Just incredible :open_mouth:',
- 'What camera did you use @{}?',
- 'Love your posts @{}',
- 'Looks awesome @{}',
- 'Nice @{}',
- ':raised_hands: Yes!',
- 'I can feel your passion @{} :muscle:']
- session.set_do_comment(enabled = True, percentage = 95)
- session.set_comments(photo_comments, media = 'Photo')
- session.join_pods()
Advertisement
Add Comment
Please, Sign In to add comment