1

我编写了以下代码,应该喜欢基于给定标签的帖子,然后关注页面。但是,似乎代码运行,转到那些标签,但不喜欢或不关注页面。我的代码如下:

from instapy import InstaPy

session = InstaPy(username="myusername",password="mypassword")
session.login()
session.like_by_tags(["dance", "mercedes"], amount=10, interact=True)
session.set_do_follow(enabled=True, percentage=100)
session.set_user_interact(amount=5, randomize=True, percentage=100)
session.end()

输出:正如我上面所说,代码运行良好,进入 Instagram,登录,进入这些标签,但不喜欢或关注其中的任何一个。我检查了输出,它显示以下内容(仅在下面给出一些重要的摘要):

Unavailable Page: b'https://www.instagram.com/p/CZQuYMVKLwT/'
Image not liked: b'Unavailable Page'

|> LIKED 0 images  |  ALREADY LIKED: 0
        |> COMMENTED on 0 images
        |> FOLLOWED 0 users  |  ALREADY FOLLOWED: 0
        |> UNFOLLOWED 0 users
        |> LIKED 0 comments
        |> REPLIED to 0 comments
        |> INAPPROPRIATE images: 38
        |> NOT VALID users: 0
        |> WATCHED 0 story(ies)  |  WATCHED 0 reel(s)
4

0 回答 0