Any tips or guide how to make it work and not get lockout every few hours?
here is part of the code Im using:
media = self._cl.hashtag_medias_recent_v1(hashtag, amount=num_posts) #hashtag_medias_recent_v1 #hashtag_medias_recent
fail_counter = 0
for post in media:
if random.random() < comment_chance:
try:
# Check if we have already commented on this post
comments = self._cl.media_comments(post.pk)
if any(comment.user.username == self._cl.username for comment in comments):
continue
Any tips or guide how to make it work and not get lockout every few hours?
here is part of the code Im using:
media = self._cl.hashtag_medias_recent_v1(hashtag, amount=num_posts) #hashtag_medias_recent_v1 #hashtag_medias_recent
fail_counter = 0
for post in media:
if random.random() < comment_chance:
try:
# Check if we have already commented on this post
comments = self._cl.media_comments(post.pk)
if any(comment.user.username == self._cl.username for comment in comments):
continue