Closed gixxerfrank closed 4 years ago
Hey @gixxerfrank,
We did a quick check and this issue looks very darn similar to
This could be a coincidence, but if any of these issues solves your problem then I did a good job :smile:
If not, the maintainers will get to this issue shortly.
Cheers, Your Friendly Neighborhood ProBot
pasted the bot.py file for reference
The issue applies for both like hashtags and and like followers of functions
Came across this too. Like delay is as default a random between 30 and 70 (newest version of bot.py!) (atm its 67 for me) and my like action is getting blocked after 36 liked medias. Frustrating. We have to investigate this further, how we can prevent block!
30 and 70 is even better than hardcoded 30 it was set to. Anyway you can easlly adjust it yourself (make it hardcoded). Can you share the code of the script you are running in a code block? I have no idea what your issue really is when you just copy paste text.
@bruvv the Problem seems to be that Instagram is much more likely to block the like action. I mean with a like delay of 67 I get blocked after just 34 liked medias, that is nearly to not usable...
I also use a (modified) version of examples/ultimate_scheduled, and there for example the method like_followers_from_random_file
What do you suggest @fighterii? Do you think a bigger like delay will not make you blocked?
I don't think that this alone will solve the problem, over 1 min is big enough. At the moment I don't have an idea.
I think we should make something that is explained here: https://github.com/instagrambot/instabot/issues/1194 Still didn't have time to figure something out with the current code base
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x]).Before submitting an issue, make sure you have:
Purpose of your issue?
The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to 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 3.72
here:Code:
import atexit import datetime import logging import os import random import signal import time
from .. import utils from ..api import API from .state.bot_state import BotState from .state.bot_cache import BotCache from .bot_archive import archive, archive_medias, unarchive_medias from .bot_block import block, block_bots, block_users, unblock, unblock_users from .bot_checkpoint import load_checkpoint, save_checkpoint from .bot_comment import ( comment, comment_geotag, comment_hashtag, comment_medias, comment_user, comment_users, is_commented, reply_to_comment, ) from .bot_delete import delete_comment, delete_media, delete_medias from .bot_direct import ( approve_pending_thread_requests, send_hashtag, send_like, send_media, send_medias, send_message, send_messages, send_photo, send_profile, ) from .bot_filter import check_media, check_not_bot, check_user, filter_medias from .bot_follow import ( approve_pending_follow_requests, follow, follow_followers, follow_following, follow_users, reject_pending_follow_requests, ) from .bot_get import ( convert_to_user_id, get_archived_medias, get_comment, get_comment_likers, get_geotag_medias, get_geotag_users, get_hashtag_medias, get_hashtag_users, get_last_user_medias, get_link_from_media_id, get_locations_from_coordinates, get_media_commenters, get_media_comments, get_media_comments_all, get_media_id_from_link, get_media_info, get_media_likers, get_media_owner, get_messages, get_pending_follow_requests, get_pending_thread_requests, get_popular_medias, get_self_story_viewers, get_timeline_medias, get_timeline_users, get_total_hashtag_medias, get_total_user_medias, get_user_followers, get_user_following, get_user_id_from_username, get_user_info, get_user_likers, get_user_medias, get_user_reel, get_user_stories, get_user_tags_medias, get_username_from_user_id, get_your_medias, search_users, get_muted_friends, ) from .bot_like import ( like, like_comment, like_followers, like_following, like_geotag, like_hashtag, like_location_feed, like_media_comments, like_medias, like_timeline, like_user, like_users, ) from .bot_photo import download_photo, download_photos, upload_photo from .bot_stats import save_user_stats from .bot_story import download_stories, upload_story_photo, watch_users_reels from .bot_support import ( check_if_file_exists, console_print, extract_urls, read_list_from_file, ) from .bot_unfollow import ( unfollow, unfollow_everyone, unfollow_non_followers, unfollow_users, ) from .bot_unlike import ( unlike, unlike_comment, unlike_media_comments, unlike_medias, unlike_user, ) from .bot_video import download_video, upload_video
class Bot(object): def init( self, whitelist_file="MGO_whitelist.txt", blacklist_file="MGO_blacklist.txt", comments_file="MGO_comments.txt", followed_file="MGO_followed.txt", unfollowed_file="MGO_unfollowed.txt", skipped_file="MGO_skipped.txt", friends_file="MGO_friends.txt", base_path="", proxy=None, max_likes_per_day=random.randint(50,5 0), max_unlikes_per_day=random.randint(0, 0), max_follows_per_day=random.randint(50, 50), max_unfollows_per_day=random.randint(0, 0), max_comments_per_day=random.randint(0, 0), max_blocks_per_day=random.randint(0, 0), max_unblocks_per_day=random.randint(0, 0), max_likes_to_like=random.randint(50, 50), min_likes_to_like=random.randint(50, 50), max_messages_per_day=random.randint(0, 0), filter_users=True, filter_private_users=True, filter_users_without_profile_photo=False, filter_previously_followed=False, filter_business_accounts=False, filter_verified_accounts=False, max_followers_to_follow=5000, min_followers_to_follow=10, max_following_to_follow=2000, min_following_to_follow=10, max_followers_to_following_ratio=15, max_following_to_followers_ratio=15, min_media_count_to_follow=3, max_following_to_block=2000, like_delay=random.randint(150, 150), unlike_delay=random.randint(300, 700), follow_delay=random.randint(300, 700), unfollow_delay=random.randint(300, 700), comment_delay=random.randint(300, 700), block_delay=random.randint(300, 700), unblock_delay=random.randint(300, 700), message_delay=random.randint(300, 700), stop_words=("shop", "store", "free"), blacklist_hashtags=["#shop", "#store", "#free"], blocked_actions_protection=True, blocked_actions_sleep=False, blocked_actions_sleep_delay=random.randint(300, 500), verbosity=True, device=None, save_logfile=True, log_filename=None, loglevel_file=logging.INFO, loglevel_stream=logging.DEBUG, log_follow_unfollow=True, ): self.api = API( device=device, base_path=base_path, save_logfile=save_logfile, log_filename=log_filename, loglevel_file=loglevel_file, loglevel_stream=loglevel_stream, ) self.log_follow_unfollow = log_follow_unfollow self.base_path = base_path
Error/Debug Log:
Describe your issue
The like actions, and all actions, are too fast and the config times do not adjust speed everything is at or around 10 seconds