Esempio n. 1
0
def xunfollow():
    send_message(
        'InstaPy Unfollower Wednesday Started @ {}'.format(datetime.now(tz)),
        "728810316")

    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        try:
            # settings
            session.set_relationship_bounds(enabled=False, potency_ratio=1.21)

            # actions
            session.unfollow_users(amount=1000,
                                   allFollowing=True,
                                   style="RANDOM",
                                   unfollow_after=3 * 60 * 60,
                                   sleep_delay=450)

        except Exception:
            print(traceback.format_exc())

    send_message(
        'InstaPy Follower Wednesday Stopped @ {}'.format(datetime.now(tz)),
        "728810316")
def xunfollow():
    requests.get(
        "https://api.telegram.org/bot<INSERT_BOT_API_KEY_HERE/sendMessage?chat_id=<>INSERT_CHATID_HERE>&text"
        "='InstaPy Unfollower WEDNESDAY Started @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))

    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        try:
            # settings
            session.set_relationship_bounds(enabled=False, potency_ratio=1.21)

            # actions
            session.unfollow_users(amount=1000,
                                   allFollowing=True,
                                   style="RANDOM",
                                   unfollow_after=3 * 60 * 60,
                                   sleep_delay=450)

        except Exception:
            print(traceback.format_exc())

    requests.get(
        "https://api.telegram.org/bot<INSERT_BOT_API_KEY_HERE/sendMessage?chat_id=<>INSERT_CHATID_HERE>&text"
        "='InstaPy Unfollower WEDNESDAY Stopped @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))
Esempio n. 3
0
def scheduled_job():
    follow_likers_of_users = [
        'ramoswasoffside', 'passporttoearth', 'fav_skies',
        'super_photosunsets', 'njsunrise_sunset', 'adventures_shutter',
        'myskynow', 'newjerseyisbeautiful', 'igersmood', 'amazingly_sunsets',
        'hey_ihadtosnapthat', 'passion_4_living_photos', 'goventureorange',
        'onlythebestcapture', 'goandcapturethelight', 'bestpicturesgallery',
        'rthouse'
    ]
    random.shuffle(follow_likers_of_users)
    # set workspace folder at desired location (default is at your home folder)
    set_workspace(path="./")
    workspace_in_use = get_workspace()
    print(workspace_in_use["path"])

    # get an InstaPy session!
    session = InstaPy(username=os.environ['username'],
                      password=os.environ['password'],
                      headless_browser=True)

    with smart_run(session):
        """ Activity flow """
        # general settings
        session.set_dont_include(["friend1", "friend2", "friend3"])
        #session.follow_likers(follow_likers_of_users, photos_grab_amount=int(os.environ['photos_grab_amount']), follow_likers_per_photo=int(os.environ['follow_likers_per_photo']), randomize=False, sleep_delay=int(os.environ['follow_sleep_delay']), interact=False)
        session.unfollow_users(amount=int(os.environ['unfollow_amount']),
                               allFollowing=True,
                               style="LIFO",
                               unfollow_after=48 * 60 * 60,
                               sleep_delay=int(
                                   os.environ['unfollow_sleep_delay']))
def interact_with_user_followers(interact_amount,
                                 users_amount,
                                 username='******'):
    session = InstaPy(username='******',
                      password='******',
                      headless_browser=True)
    with smart_run(session):
        session.set_simulation(enabled=True, percentage=100)
        session.set_skip_users(skip_private=True,
                               private_percentage=100,
                               skip_business=True,
                               business_percentage=100)
        session.set_action_delays(enabled=True,
                                  like=50,
                                  comment=100,
                                  follow=317,
                                  unfollow=488,
                                  story=100,
                                  randomize=True,
                                  random_range_from=90,
                                  random_range_to=140)

        session.set_user_interact(amount=interact_amount,
                                  randomize=True,
                                  percentage=80)
        #session.set_do_follow(enabled=True, percentage=20)
        session.set_do_like(enabled=True, percentage=90)
        session.set_comments(photo_comments)
        session.set_do_comment(enabled=True, percentage=10)
        session.interact_user_followers([username],
                                        amount=users_amount,
                                        randomize=True)
        session.end()
Esempio n. 5
0
 def run(self):
     with smart_run(self.session):
         if self.like_by_feed:
             self.session.like_by_feed(amount=20,
                                       randomize=True,
                                       unfollow=True,
                                       interact=True)
         if self.like:
             self.session.like_by_tags(self.tags, amount=15)
         if self.comment:
             self.session.set_comments(self.comments)
             self.session.set_do_comment(enabled=True, percentage=25)
             self.session.interact_user_followers(self.targets,
                                                  amount=30,
                                                  randomize=True)
         if self.follow:
             self.session.follow_user_followers(self.targets,
                                                amount=30,
                                                randomize=True)
         if self.unfollow:
             self.session.unfollow_users(amount=45,
                                         InstapyFollowed=(True,
                                                          "nonfollowers"),
                                         unfollow_after=72 * 60 * 60,
                                         sleep_delay=300)
def unfollow():
    requests.get(
        "https://api.telegram.org/******/sendMessage?chat_id=*****&text"
        "='InstaPy Unfollower Started @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))

    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        try:
            # settings
            session.set_relationship_bounds(enabled=False, potency_ratio=1.21)

            # actions
            session.unfollow_users(amount=600,
                                   allFollowing=True,
                                   style="RANDOM",
                                   sleep_delay=450)

        except Exception:
            print(traceback.format_exc())

    requests.get(
        "https://api.telegram.org/******/sendMessage?chat_id=*****&text"
        "='InstaPy Unfollower Stopped @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))
Esempio n. 7
0
def xunfollow():
    requests.get(
        "https://api.telegram.org/bot439604565:AAE3K9FIReY512NNgb1GryjhdX35L_2RDYw/sendMessage?chat_id=505840575&text"
        "='dollysdev Unfollower Started @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))

    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        try:
            # settings
            session.set_relationship_bounds(enabled=False, potency_ratio=1.21)

            # actions
            session.unfollow_users(amount=2000,
                                   allFollowing=True,
                                   style="RANDOM",
                                   unfollow_after=3 * 60 * 60,
                                   sleep_delay=150)

        except Exception:
            print(traceback.format_exc())

    requests.get(
        "https://api.telegram.org/bot439604565:AAE3K9FIReY512NNgb1GryjhdX35L_2RDYw/sendMessage?chat_id=505840575&text"
        "='dollysdev Unfollower WEDNESDAY Stopped @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))
Esempio n. 8
0
def follow_hashtag_base():
    session = config_setting()
    
    with smart_run(session):
        counter = 0 
        while counter < 5:
            counter += 1
            
            try:
                # Setting 
                # potency_ratio == (followers count / following count)| eg. 5000(followers)/4000(following) == 1.25
                session.set_relationship_bounds(enabled=True,
                                                potency_ratio=None,
                                                delimit_by_numbers=True,
                                                max_followers=8000,
                                                min_followers=200,
                                                max_following=5000,
                                                min_following=100,
                                                )
                
                # Activity
                session.follow_by_tags(tags=["بورس"], amount=5)
                session.unfollow_users(amount=25,
                                       style="RANDOM",
                                       unfllow_after=48*60*60,
                                       nonFollowers=True,
                                       custom_list_enabled=False,
                                       allFollowing=False,
                                       instapy_followed_enabled=False, 
                                       sleep_delay=600
                                       )
                
            except Exception as e:
                print(traceback.format_exc())
def unfollow_normal_users(unfollow_amount):
    session = InstaPy(username='******',
                      password='******',
                      headless_browser=True)
    with smart_run(session):
        session.set_simulation(enabled=True, percentage=100)
        session.set_skip_users(skip_private=True,
                               private_percentage=100,
                               skip_business=True,
                               business_percentage=100)
        session.set_action_delays(enabled=True,
                                  like=50,
                                  comment=100,
                                  follow=317,
                                  unfollow=488,
                                  story=100,
                                  randomize=True,
                                  random_range_from=70,
                                  random_range_to=140)

        session.unfollow_users(amount=unfollow_amount,
                               nonFollowers=True,
                               style="RANDOM",
                               unfollow_after=42 * 60 * 60,
                               sleep_delay=755)
        session.end()
Esempio n. 10
0
def job():
    session = InstaPy(username=insta_username, password=insta_password)
    with smart_run(session):
        session.set_do_comment(enabled=True, percentage=20)
        session.set_comments(['Well done!'])
        session.set_do_follow(enabled=True, percentage=5, times=2)
        session.like_by_tags(['love'], amount=50, media='image')
Esempio n. 11
0
    def hashTag_Target_LikeNComment(self):
        try:
            self.session.set_ignore_if_contains(self.registered_words)
            # follow 설정
            self.session.set_do_follow(True, percentage=100)
            # 설정된 comment내에서 무작위로 comment 달기
            self.session.set_comments(self.registered_comments)
            self.session.set_do_comment(enabled=True, percentage=80)
            self.session.set_user_interact(amount=3,
                                           randomize=True,
                                           percentage=100)
            self.session.set_do_like(True, percentage=100)
            if self.isSessionRun:
                self.session.set_dont_include(self.followers)
                self.session.like_by_tags(self.hashtag_listbox.curselection())
            else:
                with smart_run(self.session):
                    self.followers = self.session.grab_followers(
                        username=self.user_information['username'],
                        amount="full",
                        live_match=True,
                        store_locally=True)
                    self.session.set_dont_include(self.followers)
                    self.session.like_by_tags([
                        self.registered_hashtags[i]
                        for i in self.hashtag_listbox.curselection()
                    ])
                    self.isSessionRun = True

        except Exception as error:
            tkinter.messagebox.showinfo("warning", error)
Esempio n. 12
0
def xunfollow():
    requests.get(
        "https://api.telegram.org/bot1201024024:AAE5kVba-aebOWfGVq7dN3AL5rfo15CBBxY/sendMessage?chat_id=500130880&text"
        "='InstaPy Unfollower WEDNESDAY Started @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))

    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        try:
            # settings
            session.set_relationship_bounds(enabled=False, potency_ratio=1.21)

            # actions
            session.unfollow_users(amount=1000,
                                   allFollowing=True,
                                   style="RANDOM",
                                   unfollow_after=3 * 60 * 60,
                                   sleep_delay=450)

        except Exception:
            print(traceback.format_exc())

    requests.get(
        "https://api.telegram.org/bot1201024024:AAE5kVba-aebOWfGVq7dN3AL5rfo15CBBxY/sendMessage?chat_id=500130880&text"
        "='InstaPy Unfollower WEDNESDAY Stopped @ {}'".format(
            datetime.now().strftime("%H:%M:%S")))
Esempio n. 13
0
def run_instarb_auto_liker(user_id, insta_account_id, content):
    user_settings = UserToolSettings.query.filter_by(user_id=user_id).first()
    # headless_browser and live_broser opposite terms 
    headless_browser_value = False if user_settings.live_browser == 'True' else True 
    do_like_value = True if user_settings.do_like == 'True' else False
    like_randomize_value = True if user_settings.like_randomize == 'True' else False
    like_percentage_value = user_settings.like_percentage 

    user_insta_credentials = UserInstagramAccounts.query.filter_by(id=insta_account_id).first()
    insta_username = user_insta_credentials.insta_username
    insta_password = instagram_password_decryption(user_insta_credentials.insta_password)

    url_list_to_like = extract_url_from_text(content)
    
    user_workspace = os.path.join(app.root_path, 'workspace/')
    set_workspace(path=user_workspace)

    session = InstaPy(username=insta_username, password=insta_password, headless_browser=headless_browser_value, multi_logs=True)
    
    with smart_run(session, threaded=True):
        try:
            session.set_do_like(enabled=do_like_value, percentage=like_percentage_value)
            session.interact_by_URL(urls=url_list_to_like, randomize=like_randomize_value, interact=True)
            status = 'Success'
        except:
            print("CLOSED SESSION")
            status = 'Failed'
            session.end(threaded_session=True)

    return status
Esempio n. 14
0
    def follow_and_like(self):
        session = self.get_session()
        print(session.browser.get_cookies())
        # let's go! :>
        with smart_run(session):
            counter = 0

            while counter < 1:
                counter += 1
                try:
                    # settings
                    session.set_relationship_bounds(enabled=False,
                                                    potency_ratio=-1.21,
                                                    delimit_by_numbers=True,
                                                    max_followers=4590,
                                                    max_following=5555,
                                                    min_followers=45,
                                                    min_following=77)

                    session.set_do_comment(True, percentage=45)
                    session.set_comments(self.comments)

                    # activity
                    session.follow_by_tags(['cat', 'dog'], amount=5)
                    session.follow_user_followers(['lajixi', 'jaychou'], amount=5, randomize=False)
                    session.like_by_tags(
                        ['cat', 'ironman'],
                        amount=8, skip_top_posts=True)

                    """ Joining Engagement Pods...
                        """
                    session.join_pods(topic='entertainment', engagement_mode='light')
                except:
                    print(traceback.format_exc())
Esempio n. 15
0
 def startsession(self):
     with smart_run(self.session):
         """Activity Flow"""
         self.session.like_by_tags(
             ['python3', 'javascript', 'coding', 'python'], amount=10)
         self.session.set_comments(comments)
         self.session.set_do_comment(True, percentage=70)
         self.session.set_dont_like(filter_tags)
Esempio n. 16
0
 def testOurCodeCommentWithFullRation(self):
     with smart_run(self.session):
         self.session.set_dont_like(self.donLikeTags)
         self.session.set_do_follow(enabled=True, percentage=100, times=1)
         self.session.set_do_comment(enabled=True, percentage=100)
         instagram.startMachine(self.my_locations, self.my_hashtags, 100,
                                100, self.my_hashtags,
                                1, 10, self.comments)
Esempio n. 17
0
 def testHybidunfollowNewFollowers(self):
     with smart_run(self.session):
         self.session.set_ignore_if_contains(self.ignore_list)
         self.session.set_user_interact(amount=2, randomize=True, percentage=60)
         self.session.set_do_follow(enabled=True, percentage=40)
         self.session.set_do_like(enabled=True, percentage=80)
         instagram.startMachine(self.my_locations, self.my_hashtags, 0,
                                0, self.my_hashtags,
                                10, 10, self.comments)
Esempio n. 18
0
def bot(creds):

    #########          CREDENTIALS           ############
    insta_username = creds[0]
    insta_password = creds[1]

    ##########      TARGET USERS - ACCOUNTS SIMILAR TO YOURS       #########

    ####################################################################################
    #
    #              _____ ______  _____ _____ _____ ____  _   _
    #              / ____|  ____|/ ____/ ____|_   _/ __ \| \ | |
    #             | (___ | |__  | (___| (___   | || |  | |  \| |
    #              \___ \|  __|  \___ \\___ \  | || |  | | . ` |
    #              ____) | |____ ____) |___) |_| || |__| | |\  |
    #             |_____/|______|_____/_____/|_____\____/|_| \_|
    #
    #
    ####################################################################################
    print("\n\n CREATING SESSION \n\n")
    session = InstaPy(username=insta_username,
                      password=insta_password,
                      headless_browser=True,
                      disable_image_load=True,
                      multi_logs=True)

    with smart_run(session):

        #KEEP ACTIVITY IN CHECK
        session.set_simulation(enabled=True, percentage=100)

        session.set_quota_supervisor(
            enabled=True,
            sleep_after=["unfollows", "server_calls"],
            sleepyhead=True,
            stochastic_flow=True,
            notify_me=True,
            peak_unfollows_hourly=18,  #both metrics included in follow
            peak_unfollows_daily=150,  #^^^^
            peak_server_calls_hourly=190,  ##limit 200
            peak_server_calls_daily=4700)  ##limit 4800

        ############################   UNFOLLOWING ROUTINE   ########################################################

        # UNFOLLOW activity

        session.unfollow_users(amount=180,
                               nonFollowers=True,
                               style="FIFO",
                               unfollow_after=1)

        session.unfollow_users(amount=100,
                               allFollowing=True,
                               style="FIFO",
                               unfollow_after=24 * 60 * 60)

        session.join_pods()
Esempio n. 19
0
    def daily_maintenance(self):
        # 打乱hash标签
        random.shuffle(self.hashtags)
        # 随机选择6个标签
        my_hashtags = self.hashtags[:6]

        session = self.get_session()

        with smart_run(session, threaded=True):
            print(session.browser.get_cookies())
            # general settings
            session.set_dont_like(['sad', 'rain', 'depression'])
            session.set_do_follow(enabled=True, percentage=20, times=1)
            session.set_do_comment(enabled=True, percentage=80)
            session.set_comments(self.comments)
            session.set_do_like(True, percentage=70)
            session.set_delimit_liking(enabled=True, max_likes=100, min_likes=0)
            session.set_delimit_commenting(enabled=True, max_comments=20, min_comments=0)
            session.set_relationship_bounds(enabled=True,
                                            potency_ratio=None,
                                            delimit_by_numbers=True,
                                            max_followers=9999,
                                            max_following=9999,
                                            min_followers=10,
                                            min_following=50)

            session.set_quota_supervisor(enabled=True,
                                         sleep_after=["likes", "follows"],
                                         sleepyhead=True, stochastic_flow=True,
                                         notify_me=True,
                                         peak_likes_hourly=30,
                                         peak_likes_daily=60,
                                         peak_comments_hourly=10,
                                         peak_comments_daily=30,
                                         peak_follows_hourly=20,
                                         peak_follows_daily=None,
                                         peak_unfollows_hourly=5,
                                         peak_unfollows_daily=10,
                                         peak_server_calls_hourly=None,
                                         peak_server_calls_daily=4700)

            session.set_user_interact(amount=10, randomize=True, percentage=80)

            # let's go! :>
            session.unfollow_users(amount=100, instapy_followed_enabled=True, instapy_followed_param="nonfollowers",
                                   style="FIFO",
                                   unfollow_after=12 * 60 * 60, sleep_delay=501)
            # session.unfollow_users(amount=500, instapy_followed_enabled=True, instapy_followed_param="all",
            #                        style="FIFO", unfollow_after=24 * 60 * 60,
            #                        sleep_delay=501)
            session.like_by_tags(my_hashtags, amount=90, media=None)
            # session.follow_user_followers(['ironman.official', 'jjlin', 'danielkordan'], amount=20, randomize=True, interact=True, sleep_delay=120)
            """ Joining Engagement Pods...
            """
            random.shuffle(self.allowed_pod_topics)
            session.join_pods(topic=self.allowed_pod_topics[0], engagement_mode='no_comments')
Esempio n. 20
0
def like():
    bot = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=True)
    with smart_run(bot, threaded=True):
        print('💞 Showing friends some love 💖')
        bot.set_relationship_bounds(enabled=False)
        bot.set_skip_users(skip_private=False)
        bot.set_do_like(True, percentage=100)
        bot.interact_by_users(friendlist, amount=1, randomize=False)
Esempio n. 21
0
def like_user_posts(users, session):
    with smart_run(session):
        # like 50% of posts
        session.set_do_follow(enabled=False, percentage=50)
        # put the given comments 80% of the time upon interaction
        session.set_comments(photo_comments)
        session.set_do_comment(enabled=True, percentage=80)
        # like 70% of interacted posts
        session.set_do_like(True, percentage=70)
        session.interact_by_users(users, amount=5, randomize=True, media='Photo')
Esempio n. 22
0
def unfollow():
    session = config_setting()
    
    with smart_run(session):
        try:
            # Setting
            session.set_relationship_bounds(enabled=False, potency_ratio=1.25)

            # Activity

            session.unfollow_users(amount=600, nonFollowers=True, style="RANDOM")
Esempio n. 23
0
def job():
    session = InstaPy(username=insta_username,
                      password=insta_password,
                      headless_browser=True)
    with smart_run(session):
        session.set_do_comment(enabled=True, percentage=60)
        session.set_comments(['🔥', 'Great picture!'])
        session.set_do_follow(enabled=True, percentage=40, times=100)
        session.like_by_tags(['#travel', 'fashion', 'food'],
                             amount=100,
                             media='Photo')
def unfollow():
    # get a session!
    session = get_session()

    # let's go!
    with smart_run(session):
        # settings
        session.set_relationship_bounds(enabled=False, potency_ratio=0.9)

        # actions
        session.unfollow_users(amount=521, InstapyFollowed=(True, "all"),style="FIFO",unfollow_after=12 * 60 * 60, sleep_delay=672)
Esempio n. 25
0
def job():
    session = InstaPy(username=insta_username,
                      password=insta_password,
                      headless_browser=True)
    with smart_run(session):
        session.set_do_comment(enabled=True, percentage=60)
        session.set_comments([
            '🔥', 'Great picture!',
            "Love this! Dm for clothing business opportunity!"
        ])
        session.like_by_tags(['fitness'], amount=100, media='Photo')
Esempio n. 26
0
    def startMachine(self,
                     location,
                     tagList,
                     likeProbability,
                     videPropability,
                     followingNames,
                     unfolowAmount=100,
                     unfollowDelay=100,
                     comments=["nice picture", "you look amazing"],
                     mode='normal',
                     topic="entertainment"):
        with smart_run(self.session):

            logging.debug(location, tagList, likeProbability, videPropability,
                          followingNames, unfolowAmount, unfollowDelay,
                          comments)
            if (comments != ''):
                logging.debug("comments")
                logging.debug(comments)
                self.session.set_do_comment(enabled=True, percentage=80)
                self.session.set_comments(comments)
                self.session.set_delimit_commenting(enabled=True,
                                                    max_comments=200,
                                                    min_comments=0)

            if (location == ''):
                self.session.follow_by_locations(location, amount=2)
            if (tagList != ''):
                self.session.follow_user_followers(followingNames, amount=2)

            if (tagList != '' and likeProbability != ''):
                logging.debug("likeByTags")
                logging.debug(likeProbability)
                logging.debug(tagList)
                self.session.set_user_interact(randomize=True,
                                               percentage=likeProbability)
                self.session.like_by_tags(tagList, amount=2)

            if (unfolowAmount != '' and unfollowDelay != ''):
                logging.debug("unfollowDelay")
                logging.debug(unfolowAmount)
                logging.debug(unfollowDelay)
                self.session.unfollow_users(amount=unfolowAmount,
                                            allFollowing=True,
                                            style="FIFO",
                                            unfollow_after=unfollowDelay,
                                            sleep_delay=60)
                self.session.unfollow_users(amount=500,
                                            InstapyFollowed=(True,
                                                             "nonfollowers"),
                                            style="FIFO",
                                            unfollow_after=12 * 60 * 60,
                                            sleep_delay=601)
Esempio n. 27
0
def unfollow():
  print("i am in");
  
  with smart_run(session):

    session.unfollow_users(
      amount=99, 
      instapy_followed_enabled=True, 
      instapy_followed_param="nonfollowers",
      style="FIFO",
      unfollow_after=12 * 60 * 60, 
      sleep_delay=60)
Esempio n. 28
0
def job():
    # get an InstaPy session!
    # set headless_browser=True to run InstaPy in the background
    session = InstaPy(username=insta_username,
                      password=insta_password,
                      headless_browser=False)

    with smart_run(session):
        """ Activity flow """
        # general settings
        session.set_dont_include(["friend1", "friend2", "friend3"])

        # activity
        session.set_user_interact(amount=3,
                                  randomize=True,
                                  percentage=100,
                                  media="Photo")
        session.set_relationship_bounds(
            enabled=True,
            potency_ratio=None,
            delimit_by_numbers=True,
            max_followers=3000,
            max_following=900,
            min_followers=50,
            min_following=50,
        )

        session.set_do_follow(enabled=True, percentage=100)
        session.set_do_comment(enabled=True, percentage=100)
        session.set_comments(comments)
        session.unfollow_users(
            amount=60,
            InstapyFollowed=(True, "all"),
            style="FIFO",
            unfollow_after=90 * 60 * 60,
            sleep_delay=501,
        )

        session.like_by_tags(
            ["photo", "photography", "nature", "natgeo", "world"],
            amount=25,
            interact=True)

        session.unfollow_users(
            amount=60,
            InstapyFollowed=(True, "all"),
            style="FIFO",
            unfollow_after=90 * 60 * 60,
            sleep_delay=501,
        )

        # Joining Engagement Pods
        session.join_pods()
def relatiohships(username):
    session = InstaPy(username=insta_username,
                      password=insta_password,
                      headless_browser=False)
    with smart_run(session, threaded=True):
        try:
            session.login()
            mutual_are_following(session, username)
            session.end(threaded_session=True)
        except:
            session.end(threaded_session=True)
            print('Finishing relathionships')
Esempio n. 30
0
    def startInstaPySession(self):
        """ Starts an InstaPy session"""

        session = InstaPy(username=self.credentials[0],
                          password=self.credentials[1],
                          headless_browser=False)

        with smart_run(session):
            accs = ["maleke_t"]
            session.follow_by_list(accs,
                                   times=1,
                                   sleep_delay=600,
                                   interact=False)