Advertisement
Guest User

example.py

a guest
Jul 19th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.04 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import time
  5.  
  6. from src import InstaBot
  7. from src.check_status import check_status
  8. from src.feed_scanner import feed_scanner
  9. from src.follow_protocol import follow_protocol
  10. from src.unfollow_protocol import unfollow_protocol
  11.  
  12. bot = InstaBot(
  13.     login="davistar16",
  14.     password="skyrim16",
  15.     like_per_day=1000,
  16.     comments_per_day=0,
  17.     tag_list=['follow4follow', 'f4f', 'cute', 'l:212999109'],
  18.     tag_blacklist=['rain', 'thunderstorm'],
  19.     user_blacklist={},
  20.     max_like_for_one_tag=50,
  21.     follow_per_day=1000,
  22.     follow_time=1 * 60,
  23.     unfollow_per_day=100,
  24.     unfollow_break_min=15,
  25.     unfollow_break_max=30,
  26.     log_mod=0,
  27.     proxy='',
  28.     # List of list of words, each of which will be used to generate comment
  29.     # For example: "This shot feels wow!"
  30.     comment_list=[["this", "the", "your"],
  31.                   ["photo", "picture", "pic", "shot", "snapshot"],
  32.                   ["is", "looks", "feels", "is really"],
  33.                   ["great", "super", "good", "very good", "good", "wow",
  34.                    "WOW", "cool", "GREAT","magnificent", "magical",
  35.                    "very cool", "stylish", "beautiful", "so beautiful",
  36.                    "so stylish", "so professional", "lovely",
  37.                    "so lovely", "very lovely", "glorious","so glorious",
  38.                    "very glorious", "adorable", "excellent", "amazing"],
  39.                   [".", "..", "...", "!", "!!", "!!!"]],
  40.     # Use unwanted_username_list to block usernames containing a string
  41.     ## Will do partial matches; i.e. 'mozart' will block 'legend_mozart'
  42.     ### 'free_followers' will be blocked because it contains 'free'
  43.     unwanted_username_list=[
  44.         'second', 'stuff', 'art', 'project', 'love', 'life', 'food', 'blog',
  45.         'free', 'keren', 'photo', 'graphy', 'indo', 'travel', 'art', 'shop',
  46.         'store', 'sex', 'toko', 'jual', 'online', 'murah', 'jam', 'kaos',
  47.         'case', 'baju', 'fashion', 'corp', 'tas', 'butik', 'grosir', 'karpet',
  48.         'sosis', 'salon', 'skin', 'care', 'cloth', 'tech', 'rental', 'kamera',
  49.         'beauty', 'express', 'kredit', 'collection', 'impor', 'preloved',
  50.         'follow', 'follower', 'gain', '.id', '_id', 'bags'
  51.     ],
  52.     unfollow_whitelist=['example_user_1', 'example_user_2'])
  53. while True:
  54.  
  55.     #print("# MODE 0 = ORIGINAL MODE BY LEVPASHA")
  56.     #print("## MODE 1 = MODIFIED MODE BY KEMONG")
  57.     #print("### MODE 2 = ORIGINAL MODE + UNFOLLOW WHO DON'T FOLLOW BACK")
  58.     #print("#### MODE 3 = MODIFIED MODE : UNFOLLOW USERS WHO DON'T FOLLOW YOU BASED ON RECENT FEED")
  59.     #print("##### MODE 4 = MODIFIED MODE : FOLLOW USERS BASED ON RECENT FEED ONLY")
  60.     #print("###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT")
  61.  
  62.     ################################
  63.     ##  WARNING   ###
  64.     ################################
  65.  
  66.     # DON'T USE MODE 5 FOR A LONG PERIOD. YOU RISK YOUR ACCOUNT FROM GETTING BANNED
  67.     ## USE MODE 5 IN BURST MODE, USE IT TO UNFOLLOW PEOPLE AS MANY AS YOU WANT IN SHORT TIME PERIOD
  68.  
  69.     mode = 0
  70.  
  71.     #print("You choose mode : %i" %(mode))
  72.     #print("CTRL + C to cancel this operation or wait 30 seconds to start")
  73.     #time.sleep(30)
  74.  
  75.     if mode == 0:
  76.         bot.new_auto_mod()
  77.  
  78.     elif mode == 1:
  79.         check_status(bot)
  80.         while bot.self_following - bot.self_follower > 200:
  81.             unfollow_protocol(bot)
  82.             time.sleep(10 * 60)
  83.             check_status(bot)
  84.         while bot.self_following - bot.self_follower < 400:
  85.             while len(bot.user_info_list) < 50:
  86.                 feed_scanner(bot)
  87.                 time.sleep(5 * 60)
  88.                 follow_protocol(bot)
  89.                 time.sleep(10 * 60)
  90.                 check_status(bot)
  91.  
  92.     elif mode == 2:
  93.         bot.bot_mode = 1
  94.         bot.new_auto_mod()
  95.  
  96.     elif mode == 3:
  97.         unfollow_protocol(bot)
  98.         time.sleep(10 * 60)
  99.  
  100.     elif mode == 4:
  101.         feed_scanner(bot)
  102.         time.sleep(60)
  103.         follow_protocol(bot)
  104.         time.sleep(10 * 60)
  105.  
  106.     elif mode == 5:
  107.         bot.bot_mode = 2
  108.         unfollow_protocol(bot)
  109.  
  110.     else:
  111.         print("Wrong mode!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement