[GH-ISSUE #86] fail safe function help !? #65

Closed
opened 2026-03-02 23:37:44 +03:00 by kerem · 6 comments
Owner

Originally created by @potentowl on GitHub (Aug 20, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/86

##PROBLEM
get message"Need to scroll now" when b0t can scroll no further,,,

come back and it has been trying to scroll for hours instead of interact with next username.

##SOLUTION
code located at line 144, in action_handle_blogger.py
how to make function so if "Need to scroll now" is printed 5 times consecutively than instead of being stuck in a loop and not scrolling the b0t interacts with the next username available.

Originally created by @potentowl on GitHub (Aug 20, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/86 ##PROBLEM get message`"Need to scroll now"` when b0t can scroll no further,,, come back and it has been trying to scroll for hours instead of interact with next username. ##SOLUTION **code located at line 144, in action_handle_blogger.py** how to make function so if `"Need to scroll now"` is printed 5 times consecutively than instead of being stuck in a loop and not scrolling the b0t interacts with the next username available.
kerem closed this issue 2026-03-02 23:37:45 +03:00
Author
Owner

@alexal1 commented on GitHub (Aug 22, 2020):

@potentowl why it can't scroll? Can you give a screenshot to better understand?

<!-- gh-comment-id:678627315 --> @alexal1 commented on GitHub (Aug 22, 2020): @potentowl why it can't scroll? Can you give a screenshot to better understand?
Author
Owner

@potentowl commented on GitHub (Aug 24, 2020):

Problem: It can't scroll because after scrolling so much it stops
Solution: Identify each mistake with number : if mistake number > 20 than interact with next username
My pseudo-code
LINE 12: counter = 0
LINE 13: counter1 = [0,0]
LINE 124: ```
else:
counter1[0] += 1 #total counter
counter1[1] += 1 #concurrent hits
print("Miss_#{}".format(counter1[0]))

LINE 152:         ```
elif screen_iterated_followers > 0:
            counter1[1] = 0 #concurrent reset to 0 when else is triggered
            counter += 1
            print("Hit_#{}".format(counter))


example

<!-- gh-comment-id:678867026 --> @potentowl commented on GitHub (Aug 24, 2020): **Problem**: **It can't scroll because after scrolling so much it stops** **Solution**: **Identify each mistake with number : if mistake number > 20 than interact with next username** **My pseudo-code** LINE 12: `counter = 0` LINE 13: `counter1 = [0,0]` LINE 124: ``` else: counter1[0] += 1 #total counter counter1[1] += 1 #concurrent hits print("Miss_#{}".format(counter1[0])) ``` LINE 152: ``` elif screen_iterated_followers > 0: counter1[1] = 0 #concurrent reset to 0 when else is triggered counter += 1 print("Hit_#{}".format(counter)) ``` [ ![example](https://user-images.githubusercontent.com/47042375/90996768-36fcfe80-e56c-11ea-9415-d8fea396c614.jpg) ](url)
Author
Owner

@alexal1 commented on GitHub (Aug 24, 2020):

Identify each mistake with number : if mistake number > 20 than interact with next username

What if I want to interact with someone's followers, but I already interacted with say 100 of them earlier? Then your solution won't let me do it.

Actually I meant device's screenshot. I don't understand why it goes into a loop, that doesn't happen for me.

<!-- gh-comment-id:679075761 --> @alexal1 commented on GitHub (Aug 24, 2020): > Identify each mistake with number : if mistake number > 20 than interact with next username What if I want to interact with someone's followers, but I already interacted with say 100 of them earlier? Then your solution won't let me do it. Actually I meant device's screenshot. I don't understand why it goes into a loop, that doesn't happen for me.
Author
Owner

@potentowl commented on GitHub (Aug 25, 2020):

If you already interacted with 100 users earlier than it would stop after 20 mistakes and move to next username,,, if there is no other username than the script stops. i dont know how to code that into script so i just giving idea to improve smoothness of b0t because, say your interactions -- set at 100, and most of the accounts private, have too few photos, etc. so it keeps trying to interact and is stuck in loop because it can never reach 100 interactions because it reaches scroll limit before interaction limit.

<!-- gh-comment-id:680286296 --> @potentowl commented on GitHub (Aug 25, 2020): If you already interacted with 100 users earlier than it would stop after 20 mistakes and move to next username,,, if there is no other username than the script stops. i dont know how to code that into script so i just giving idea to improve smoothness of b0t because, say your interactions -- set at 100, and most of the accounts private, have too few photos, etc. so it keeps trying to interact and is stuck in loop because it can never reach 100 interactions because it reaches scroll limit before interaction limit.
Author
Owner

@alexal1 commented on GitHub (Aug 26, 2020):

If you already interacted with 100 users earlier than it would stop after 20 mistakes and move to next username

Well this behavior is not expected by most users, I don't want to do it this way...

Scroll limit

Do you mean a loop? When after long scrolling you start to see the same users as before?
Seems it's a duplicate of #78

<!-- gh-comment-id:681068293 --> @alexal1 commented on GitHub (Aug 26, 2020): > If you already interacted with 100 users earlier than it would stop after 20 mistakes and move to next username Well this behavior is not expected by most users, I don't want to do it this way... > Scroll limit Do you mean a loop? When after long scrolling you start to see the same users as before? Seems it's a duplicate of #78
Author
Owner

@alexal1 commented on GitHub (Sep 1, 2020):

Please try on v2.0.5 and reopen if it's not what you've expected

<!-- gh-comment-id:684608037 --> @alexal1 commented on GitHub (Sep 1, 2020): Please try on `v2.0.5` and reopen if it's not what you've expected
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#65
No description provided.