Description
Hi, running the example/ultimate/ultimate.py , the script start good, but after a while exit with this error:
USER_NAME: yachts.and.fishin, FOLLOWER: 248, FOLLOWING: 188 | 0/18 [00:00<?, ?it/s]
2018-08-23 22:51:50,140 - INFO - Liking user_yachts.and.fishin's feed:
2018-08-23 22:51:50,406 - INFO - Received 18 medias.
2018-08-23 22:51:50,407 - INFO - After filtration 18 medias left.
2018-08-23 22:51:50,407 - INFO - Going to like 18 medias.
2018-08-23 22:51:50,407 - INFO - Out of likes for today.
2018-08-23 22:52:00,415 - INFO - DONE: Total liked 31 medias.
Exception KeyError: KeyError(<weakref at 0x7fdfd8d7d368; to 'tqdm' at 0x7fdfd8dcb210>,) in <bound method tqdm.del of 0%| | 0/72 [02:40<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfdb54ae90>,) in <bound method tqdm.del of 0%| | 0/82 [04:06<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd9090210>,) in <bound method tqdm.del of 0%| | 0/78 [03:17<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8fa9150>,) in <bound method tqdm.del of 0%| | 0/77 [02:03<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8cce5d0>,) in <bound method tqdm.del of 0%| | 0/83 [03:29<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd9090190>,) in <bound method tqdm.del of 0%| | 0/73 [02:52<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f1b1d0>,) in <bound method tqdm.del of 0%| | 0/86 [01:51<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4ab50>,) in <bound method tqdm.del of 0%| | 0/18 [00:41<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4a910>,) in <bound method tqdm.del of 0%| | 0/18 [00:27<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd9d52aa0; to 'tqdm' at 0x7fdfd8f4aa90>,) in <bound method tqdm.del of 0%| | 0/18 [00:10<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f150a8; to 'tqdm' at 0x7fdfd8cb9110>,) in <bound method tqdm.del of 0%| | 0/81 [03:41<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f150a8; to 'tqdm' at 0x7fdfd8ed91d0>,) in <bound method tqdm.del of 0%| | 0/81 [01:39<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15050; to 'tqdm' at 0x7fdfd8de9050>,) in <bound method tqdm.del of 0%| | 0/82 [03:04<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfe78f5810>,) in <bound method tqdm.del of 0%| | 0/84 [01:26<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8f4af90>,) in <bound method tqdm.del of 0%| | 0/79 [02:15<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8f4ac90>,) in <bound method tqdm.del of 0%| | 0/17 [01:03<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8cb9350>,) in <bound method tqdm.del of 0%| | 0/81 [02:28<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x7fdfd8f15998; to 'tqdm' at 0x7fdfd8cce110>,) in <bound method tqdm.del of 0%| | 0/82 [03:54<?, ?it/s]> ignored
2018-08-23 22:52:00,734 - INFO - Bot stopped. Worked: 1:11:30.035810
2018-08-23 22:52:00,734 - INFO - Total follows: 81
2018-08-23 22:52:00,734 - INFO - Total likes: 31
2018-08-23 22:52:00,734 - INFO - Total requests: 1318
[root@botinstagram ultimate]#
ULTIMATE.PY
"""
ULTIMATE SCRIPT
It uses data written in files:
* follow_followers.txt
* follow_following.txt
* like_hashtags.txt
* like_users.txt
and do the job. This bot can be run 24/7.
"""
import os
import sys
sys.path.append(os.path.join(sys.path[0], '../../'))
from instabot import Bot
bot = Bot(
proxy=None,
max_likes_per_day=30,
max_unlikes_per_day=30,
max_follows_per_day=80,
max_unfollows_per_day=80,
max_comments_per_day=20,
max_likes_to_like=50,
filter_users=True,
filter_business_accounts=False,
filter_verified_accounts=True,
max_followers_to_follow=2000,
min_followers_to_follow=10,
max_following_to_follow=7500,
min_following_to_follow=10,
#max_followers_to_following_ratio=10,
#max_following_to_followers_ratio=2,
max_following_to_block=2000,
min_media_count_to_follow=3,
like_delay=10,
unlike_delay=10,
follow_delay=30,
unfollow_delay=30,
comment_delay=60,
stop_words=['shop', 'store', 'free'])
bot.login()
print("Current script's schedule:")
follow_followers_list = bot.read_list_from_file("follow_followers.txt")
print("Going to follow followers of:", follow_followers_list)
follow_following_list = bot.read_list_from_file("follow_following.txt")
print("Going to follow following of:", follow_following_list)
like_hashtags_list = bot.read_list_from_file("like_hashtags.txt")
print("Going to like hashtags:", like_hashtags_list)
like_users_list = bot.read_list_from_file("like_users.txt")
print("Going to like users:", like_users_list)
tasks_list = []
for item in follow_followers_list:
tasks_list.append((bot.follow_followers, {'user_id': item, 'nfollows': None}))
for item in follow_following_list:
tasks_list.append((bot.follow_following, {'user_id': item}))
for item in like_hashtags_list:
tasks_list.append((bot.like_hashtag, {'hashtag': item, 'amount': None}))
for item in like_users_list:
tasks_list.append((bot.like_user, {'user_id': item, 'amount': None}))
shuffle(tasks_list)
for func, arg in tasks_list:
func(**arg)