【问题标题】:Why can't I comment on posts with this InstaPy Script?为什么我不能用这个 InstaPy 脚本评论帖子?
【发布时间】:2021-05-24 13:30:54
【问题描述】:

我创建了一个 python 脚本,以便我可以测试 InstaPy 模块。我有一个问题,我不知道为什么我不能发表评论。我取消了我的脚本,一切都按计划进行,我什至喜欢这些图片,但控制台输出告诉我 - 没有评论!这很奇怪,因为我已经编写了 session.set_do_comment(enabled=True,percentage=100)。有人可以帮助我,甚至解释一下为什么它不起作用吗?

from instapy import InstaPy

session = InstaPy(username="My_Username", password="My_Pssword",geckodriver_path='geckodriver.exe')
session.login()

session.set_relationship_bounds(min_followers=300,max_followers=10000,min_posts=10)
session.set_quota_supervisor(peak_comments_daily=100,peak_likes_daily=100)
session.like_by_tags(["physics","math","stem","quantum","calculus"], amount=50)
session.set_comments(['Nice','Amazing Post!','Keep up the good work!'])
session.set_do_comment(enabled=True,percentage=100)


session.like_by_tags(["physics","math","stem","quantum","calculus"], amount=50)

session.end()

【问题讨论】:

    标签: python bots chatbot instapy


    【解决方案1】:

    我遇到了类似的问题,它没有发表评论。我了解到session.set_do_comment 必须放在session.like_by_tags 之前。做出这种改变是诀窍。

    即使在官方 Github 存储库中,也有人建议这样做。

    【讨论】:

      猜你喜欢
      • 2021-07-28
      • 2021-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-13
      • 2013-01-15
      • 1970-01-01
      相关资源
      最近更新 更多