ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

unfollow_delay doesn't work in ultimate schedule #362

Closed angeloiaia closed 6 years ago

angeloiaia commented 7 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?



For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Code:

-- coding: utf-8 --

import schedule import time import sys import os import random from tqdm import tqdm import threading #->added to make multithreadening possible -> see fn run_threaded

sys.path.append(os.path.join(sys.path[0],'../../')) from instabot import Bot bot = Bot( filter_users=False, unfollow_delay=30, comments_file="comments.txt", blacklist="blacklist.txt" )

bot.login(username="example", password="example") bot.logger.info("ULTIMATE script. 24hours save")

--- FILE TXT ---

random_hashtag_file = bot.read_list_from_file("hashtag_database.txt") random_user_file = bot.read_list_from_file("username_database.txt") comments_file_name = "comments.txt"

fn to return random value for separate jobs

def get_random(from_list): _random=random.choice(from_list) print("Random from ultimate.py script is chosen: \n" + _random + "\n") return _random

--- JOBS ---

def job3(): bot.unfollow_non_followers()

function to make threads

def run_threaded(job_fn): job_thread=threading.Thread(target=job_fn) job_thread.start()

UNFOLLOW

schedule.every(1).days.at("14:15").do(run_threaded, job3)

while True: schedule.run_pending() time.sleep(1)

Error/Debug Log: 4 5

Describe your issue

Hello, I'm configuring the ultimate.py script in the ultimate_schedule folder. I set the unfollow_delay parameter in Bot (). When I start the script, it begins to remove the followers very quickly. Looking at my account nothing happens, no follower has been removed.

PS. Obviously the script also performs other jobs that I removed to avoid confusion.

ohld commented 7 years ago

Please @sudoguy and @damirqa help him with that issue. It is important.

sudoguy commented 7 years ago

@angeloiaia thanks for issue! This bug was fixed in last commit (https://github.com/instagrambot/instabot/commit/4aaddbace84a4308ed99139a38153585d25bf92d)

angeloiaia commented 7 years ago

I updated everything by typing pip install -U instabot, but it still does not work.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.