SHARE
TWEET

Untitled

a guest Mar 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with smart_run(session):
  2.     # HEY HO LETS GO
  3.     # general settings
  4.     session.set_quota_supervisor(enabled=True,
  5.                                  sleep_after=["likes", "comments_d", "follows", "unfollows", "server_calls_h"],
  6.                                  sleepyhead=True,
  7.                                  stochastic_flow=True,
  8.                                  notify_me=True,
  9.                                  peak_likes=(57, 585),
  10.                                  peak_comments=(None, None),
  11.                                  peak_follows=(48, None),
  12.                                  peak_unfollows=(35, 402),
  13.                                  peak_server_calls=(None, 4700))
  14.  
  15.     session.set_dont_include(friends)
  16.     session.set_dont_like(dont_likes)
  17.     session.set_ignore_if_contains(ignore_list)
  18.     session.set_ignore_users(ignore_users)
  19.     session.set_simulation(enabled=True)
  20.     session.set_relationship_bounds(enabled=True,
  21.                                     potency_ratio=None,
  22.                                     delimit_by_numbers=True,
  23.                                     max_followers=100000,
  24.                                     max_following=5000,
  25.                                     min_followers=25,
  26.                                     min_following=25,
  27.                                     min_posts=3)
  28.  
  29.     session.set_skip_users(skip_private=False,
  30.                            skip_no_profile_pic=True,
  31.                            skip_business=True,
  32.                            dont_skip_business_categories=[
  33.                                target_business_categories])
  34.  
  35.     session.set_do_like(enabled=True, percentage=50)
  36.     session.set_do_comment(enabled=False, percentage=15)
  37.     session.set_comments(comments, media='Photo')
  38.     session.set_do_follow(enabled=True, percentage=40, times=1)
  39.     # activities
  40.  
  41.     # FOLLOW+INTERACTION on TARGETED accounts
  42.     """ Select users form a list of a predefined targets...
  43.     """
  44.     number = random.randint(3, 5)
  45.     random_targets = targets
  46.  
  47.     if len(targets) <= number:
  48.         random_targets = targets
  49.  
  50.     else:
  51.         random_targets = random.sample(targets, number)
  52.  
  53.     """ Interact with the chosen targets...
  54.     """
  55.     session.follow_user_followers(random_targets,
  56.                                   amount=random.randint(20, 50),
  57.                                   randomize=True, sleep_delay=600,
  58.                                   interact=True)
  59.  
  60.     # UNFOLLOW activity
  61.     """ Unfollow nonfollowers after one day...
  62.     """
  63.     session.unfollow_users(amount=random.randint(75, 100),
  64.                            InstapyFollowed=(True, "nonfollowers"),
  65.                            style="FIFO",
  66.                            unfollow_after=24 * 60 * 60, sleep_delay=600)
  67.  
  68.     """ Unfollow all users followed by InstaPy after one week to keep the
  69.     following-level clean...
  70.     """
  71.     session.unfollow_users(amount=random.randint(75, 100),
  72.                            InstapyFollowed=(True, "all"), style="FIFO",
  73.                            unfollow_after=168 * 60 * 60, sleep_delay=600)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top