Skip to content

I keep getting locked out, marked as automation. #1592

@alexferra

Description

@alexferra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions