0

我基本上是在使用 InstPy 模块构建一个 Instagram 机器人。当我尝试让它像来自特定标签的帖子并关注 50% 的帖子帐户时,它会检查带有该标签的帖子,但它会显示“图像太少,跳过此标签”。我应该怎么办?

from instapy import InstaPy

session = InstaPy(username="<username>", password="<password>", headless_browser=True)
session.login()
session.like_by_tags(["modernwarfare", "callofduty"])
session.set_do_follow(True, percentage=50)
session.end()

................................................................
INFO [2020-09-15 21:54:10] [username]  Logged in successfully!
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2020-09-15 21:54:10] [username]  Saving account progress...
INFO [2020-09-15 21:54:25] [username]  Tag [1/2]
INFO [2020-09-15 21:54:25] [username]  --> b'modernwarfare'
INFO [2020-09-15 21:54:52] [username]  Too few images, skipping this tag
INFO [2020-09-15 21:54:52] [username]  Tag [2/2]
INFO [2020-09-15 21:54:52] [username]  --> b'callofduty'
INFO [2020-09-15 21:55:20] [username]  Too few images, skipping this tag
INFO [2020-09-15 21:55:20] [username]  Liked: 0
INFO [2020-09-15 21:55:20] [username]  Already Liked: 0
INFO [2020-09-15 21:55:20] [username]  Commented: 0
INFO [2020-09-15 21:55:20] [username]  Followed: 0
INFO [2020-09-15 21:55:20] [username]  Inappropriate: 0
INFO [2020-09-15 21:55:20] [username]  Not valid users: 0
4

2 回答 2

0

我通过稍微编辑代码解决了这个问题。我添加了 session.set_quota_supervisor(enabled=True, peak_comments_daily=240, peak_comments_hourly=21) 行,因此 Instagram 没有将我识别为机器人并阻止我。

from instapy import InstaPy

session = InstaPy(username="username", password="password", headless_browser=True)
session.login()
session.set_quota_supervisor(enabled=True, peak_comments_daily=240, peak_comments_hourly=21)
session.like_by_tags(["modernwarfare", "callofduty"])
session.set_do_follow(True, percentage=50)
session.end()
于 2020-09-17T10:20:02.863 回答
0

我认为您已被跟踪为机器人。让它休息几个小时,然后更改您的帐户密码,然后重试。

于 2020-09-17T04:34:04.000 回答