I want to use the InstaPy package and the following code to like comments under a post on 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)
I already changed and adjusted the code plenty of times, but the one above is the only one that at least logs into my Instagram account, finds the posts and comments but still does not like those comments.
Does anyone see a major mistake or can give me some hint in which part of the code I have to adjust something?