为什么我不能用这个InstaPy脚本评论帖子?

2024-06-06 16:33:20 发布

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

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

Tags: 脚本truesessionmycomment评论enabledmin