Skip to content

Simple update browser.py and time_util.py for more randomness - #4814

Merged
breuerfelix merged 8 commits into
InstaPy:devfrom
jm-willy:master
Aug 31, 2019
Merged

Simple update browser.py and time_util.py for more randomness#4814
breuerfelix merged 8 commits into
InstaPy:devfrom
jm-willy:master

Conversation

@jm-willy

@jm-willy jm-willy commented Aug 10, 2019

Copy link
Copy Markdown
Contributor

Instead of time.sleep(), use the random sleep() from .time_util for browser.py file
and randomize sleep_percentage and custom_percentage from .time_util

@converge

converge commented Aug 10, 2019

Copy link
Copy Markdown
Contributor

what if we delete the custom sleep and start using?

from time import sleep
from random import randint
sleep(randint(3, 6))

@jm-willy

jm-willy commented Aug 10, 2019

Copy link
Copy Markdown
Contributor Author

@converge I think time_util.sleep is more human-like than time.sleep because time_util.sleep gives values according to a Gaussian distribution/bell curve, which is very present in nature, including single human behavior and single human performance(such as click, scroll speed), also single machine performance. Maybe a Pareto distribution is more natural for performance of a large number of objects/humans(see wealth distribution for example), but probably not for single things. I believe this can help to fool Insta's AI to think InstaPy is a human user. Please correct my if got something wrong

@jm-willy jm-willy changed the title Update browser.py Update browser.py and time_util.py Aug 10, 2019
@jm-willy jm-willy changed the title Update browser.py and time_util.py Simple update browser.py and time_util.py for more randomness Aug 18, 2019
@breuerfelix
breuerfelix changed the base branch from master to dev August 30, 2019 15:45
@breuerfelix

Copy link
Copy Markdown
Collaborator

didn't even know about this way of setting a random sleep delay ! really cool, will definitely check this out in detail soon !

@breuerfelix
breuerfelix merged commit fae9d57 into InstaPy:dev Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants