Advertisement
Guest User

Untitled

a guest
Dec 25th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.07 KB | None | 0 0
  1. from instapy import InstaPy
  2. from instapy.util import smart_run
  3.  
  4. # login credentials
  5. insta_username = 'yyy'
  6. insta_password = 'yyy'
  7.  
  8.         friends = ['list of friends I do not want to interact with']
  9.         dont_likes = ['#sex','#nude']
  10.         like_tag_list = ['ps4']
  11.  
  12.            
  13.             # get a session!
  14.         session =  InstaPy(username=insta_username, password=insta_password, headless_browser=True,  nogui=True)
  15.  
  16.             # let's go! :>
  17.         with smart_run(session):
  18.  
  19.                 # settings --------------------------------------
  20.                
  21.                 # interactions based on ... number of followers
  22.             session.set_relationship_bounds (enabled=True, potency_ratio=None, delimit_by_numbers=True, max_followers=30000)
  23.                 # dont like - ignore users - dont include (array mit friednds)
  24.             session.set_dont_like(dont_likes)
  25.             session.set_ignore_users(['festive_overwatch_trash'])
  26.             session.set_dont_include([])
  27.             session.set_simulation(enabled=False)
  28.            
  29.                 # activity --------------------------------------
  30.                 # action_delays
  31.             session.set_ignore_if_contains(dont_likes)
  32.             session.set_action_delays(enabled=True, like=20, comment=20, randomize=True, random_range=(100, 130))
  33.                 # comments
  34.             session.set_do_comment(enabled=True, percentage=25)
  35.             session.set_comments(['Amazing'], media='Photo')
  36.                                                
  37.                 # likes                  
  38.             session.set_do_like(enabled=True, percentage=100)
  39.             session.like_by_tags(like_tag_list, amount=40)
  40.  
  41.             # following
  42.             session.set_do_follow(enabled=True, percentage=40, times=1)
  43.             session.unfollow_users(amount=60, InstapyFollowed=(True, "nonfollowers"), style="FIFO", unfollow_after=90*60*60, sleep_delay=501)
  44.            
  45.  
  46.             session.set_quota_supervisor(enabled=True, sleep_after=["likes", "comments_d", "follows", "unfollows", "server_calls_h"], sleepyhead=True, stochastic_flow=True, notify_me=True,
  47.                               peak_likes=(299, 949),
  48.                                peak_comments=(20, 249),
  49.                                 peak_follows=(48, 499),
  50.                                  peak_unfollows=(35, 402),
  51.                                   peak_server_calls=(None, 4700))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement