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.69k stars 1.47k forks source link

The bot does not like the hashtags. #747

Closed krexfex closed 5 years ago

krexfex commented 5 years ago

Please follow the guide below


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 -V here:

Python 3.6.5

Code:

"""
    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()
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)

Error/Debug Log:

python ultimate.py
2019-01-16 18:56:43,138 - INFO - Instabot Started
Which account do you want to use? (Type number)
1: ********
0: add another account.
-1: delete all accounts.
1
2019-01-16 18:56:44,152 - INFO - Logged-in successfully as '********' using t
he cookie!
Current script's schedule:
Going to follow followers of: []
Going to follow following of: []
Going to like hashtags: ['машина']
Going to like users: []
2019-01-16 18:56:44,184 - INFO - Going to like media with hashtag #машина.
Getting hashtag media.: 0it [00:00, ?it/s]2019-01-16 18:56:44,854 - ERROR - Request returns 403 error!
2019-01-16 18:56:44,854 - INFO - Nothing to like.
2019-01-16 18:56:45,026 - INFO - Bot stopped. Worked: 2 days, 10:40:58.706596
2019-01-16 18:56:45,026 - INFO - Total likes: 1201
2019-01-16 18:56:45,026 - INFO - Total requests: 823542

Describe your issue

I'm using the latest version available with pip.

A couple of days ago, the bot stopped liking the hashtags. Displays "ERROR - Request returns 403 error!" Help me fix it.

krexfex commented 5 years ago

I downloaded the latest instabot-master.zip file. I set everything up again. It is working!