InstaBot API关注不工作

时间:2017-11-23 11:41:34

标签: python instagram

我正在使用InstaBot Python API,它可以很好地用于Instagram Likes,但是如果我只设置跟随那么没有发生任何事情。我尝试了很多来解决这个问题,但没有得到正确的解决方案。任何人都可以让我知道我在代码中的位置吗?这是我的代码:

bot = InstaBot(
            login               =   'xyz',
            password            =   'xyz',
            like_per_day        =   0,
            comments_per_day    =   0,
            tag_list            =   '',
            tag_blacklist       =   ['rain', 'thunderstorm'],
            user_blacklist      =   {},
            max_like_for_one_tag=   50,
            follow_per_day      =   10,
            follow_time         =   1 * 60,
            unfollow_per_day    =   0,
            unfollow_break_min  =   120,
            unfollow_break_max  =   180,
            log_mod             =   0,
            proxy               =   '',

            comment_list=[
                            ["photo", "picture", "pic", "shot", "snapshot"],
                        ],
            # Use unwanted_username_list to block usernames containing a string
            ## Will do partial matches; i.e. 'mozart' will block 'legend_mozart'
            ### 'free_followers' will be blocked because it contains 'free'

            unwanted_username_list=[
                'second', 'stuff', 'art', 'sex', 'food', 'blog',
            ],

            unfollow_whitelist=['example_user_1', 'example_user_2']
        )

请帮我解决问题

1 个答案:

答案 0 :(得分:0)

您的标记列表为空。您需要为机器人设置一些标签以进行搜索,以便它可以跟随人们。我还建议您更新默认值,以便您更容易理解配置。当您决定使用不同的功能时,可以随着时间的推移进行构建。

I'd recommend reading over the README.md for instructions on how to use the bot

(假设这是你正在使用的那个 - 配置对我来说很熟悉)

bot = InstaBot(
            login               =   'xyz',
            password            =   'xyz',
            like_per_day        =   0,
            comments_per_day    =   0,
            tag_list            =   ['sun', 'sea', 'water'],
            tag_blacklist       =   [],
            user_blacklist      =   {},
            max_like_for_one_tag=   50,
            follow_per_day      =   10,
            follow_time         =   1 * 60,
            unfollow_per_day    =   0,
            unfollow_break_min  =   120,
            unfollow_break_max  =   180,
            log_mod             =   0,
            proxy               =   '',

            comment_list=[],
            unwanted_username_list=[],
            unfollow_whitelist=[]
        )