Advertisement
Guest User

Untitled

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