为什么我不能评论带有此 InstaPy 脚本的帖子?



我已经创建了一个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()

我遇到过一个类似的问题,它没有注释。我了解到session.set_do_comment必须放在session.like_by_tags之前。

即使在官方Github repo上,也有人建议这样做。

最新更新