如何让Instagram机器人喜欢在订阅源上发布的评论?

2024-05-19 12:26:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使用InstaPy软件包和以下代码来喜欢Instagram帖子下的评论:

from instapy import InstaPy
from instapy import smart_run

insta_username = '***'
insta_password = '***'

session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False)

with smart_run(session):
    session.set_do_like(enabled=True, percentage=100)
    session.interact_by_comments(usernames=["***"],
                                posts_amount=1,
                                comments_per_post=5,
                                reply=True,
                                interact=True,
                                randomize=False,
                                media=None)

我已经多次修改和调整代码,但上面的代码是唯一一个至少登录到我的Instagram帐户,找到帖子和评论但仍然不喜欢这些评论的代码

是否有人看到了一个重大错误,或者可以给我一些提示,在代码的哪一部分我必须调整一些东西


Tags: run代码fromimporttruesmartsession评论
1条回答
网友
1楼 · 发布于 2024-05-19 12:26:07
#This is used to perform likes on your own feeds
#amount=100  specifies how many total likes you want to perform
#randomize=True randomly skips posts to be liked on your feed
#unfollow=True unfollows the author of a post which was considered
#inappropriate interact=True visits the author's profile page of a
#certain post and likes a given number of his pictures, then returns to feed

        session.like_by_feed(amount=100, randomize=True, unfollow=True, interact=True)

Font: https://instapy.org/actions#interact-with-specific-users

相关问题 更多 >