Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from instapy import InstaPy
- from datetime import datetime
- from instapy.util import smart_run
- # login credentials
- insta_username = 'yyy'
- insta_password = 'yyy'
- while True:
- try:
- friends = ['list of friends I do not want to interact with']
- dont_likes = ['#sex','#nude']
- like_tag_list = ['ps4']
- # get a session!
- session = InstaPy(username=insta_username, password=insta_password, headless_browser=True, nogui=True)
- # let's go! :>
- with smart_run(session):
- # settings --------------------------------------
- # interactions based on ... number of followers
- session.set_relationship_bounds (enabled=True, potency_ratio=None, delimit_by_numbers=True, max_followers=30000)
- # dont like - ignore users - dont include (array mit friednds)
- session.set_dont_like(dont_likes)
- session.set_ignore_users(['festive_overwatch_trash'])
- session.set_dont_include([])
- session.set_simulation(enabled=False)
- # activity --------------------------------------
- # action_delays
- session.set_ignore_if_contains(dont_likes)
- session.set_action_delays(enabled=True, like=20, comment=20, randomize=True, random_range=(100, 130))
- # comments
- session.set_do_comment(enabled=True, percentage=25)
- session.set_comments(['Amazing'], media='Photo')
- # likes
- session.set_do_like(enabled=True, percentage=100)
- session.like_by_tags(like_tag_list, amount=40)
- # following
- session.set_do_follow(enabled=True, percentage=40, times=1)
- session.unfollow_users(amount=60, InstapyFollowed=(True, "nonfollowers"), style="FIFO", unfollow_after=90*60*60, sleep_delay=501)
- # safety
- session.set_quota_supervisor(enabled=True, sleep_after=["likes", "comments_d", "follows", "unfollows", "server_calls_h"], sleepyhead=True, stochastic_flow=True, notify_me=True,
- peak_likes=(299, 949),
- peak_comments=(20, 249),
- peak_follows=(48, 499),
- peak_unfollows=(35, 402),
- peak_server_calls=(None, 4700))
- except:
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement