LinkedIn_networking icon indicating copy to clipboard operation
LinkedIn_networking copied to clipboard

Randomize delay between connects?

Open metaperl opened this issue 4 years ago • 4 comments

Have you thought about having the about of time slept between various actions be a random number within a range of seconds? This way, the behavior seems more human.

metaperl avatar Sep 15 '20 20:09 metaperl

yes, I agree it looks more like more human to me, we can create random sleep by taking a random number form 1-10 and then use that number in the sleep

sandeepnegi1996 avatar Apr 09 '21 18:04 sandeepnegi1996

Thanks @metaperl and @sandeepnegi1996 , I will add this too.

AkshaySiwal avatar May 23 '21 01:05 AkshaySiwal

but what if the page loads in 6 sec and the sleep is of 5 sec, it will throw an exception noSuchElement found, btw i have an solution for this i wrote try and except block of code which ensures if there is element present or not and if no such element is present it will sleep for 2 sec then again try for that try block; look how i implimented in my small script of linkedin image

should i improve your code and merge to this repo?

prabaljainn avatar Jul 28 '21 10:07 prabaljainn

Sure.

On Wed, Jul 28, 2021 at 6:45 AM Prabal Jain @.***> wrote:

but what if the page loads in 6 sec and the sleep is of 5 sec, it will throw an exception noSuchElement found, btw i have an solution for this i wrote try and except block of code which ensures if there is element present or not and if no such element is present it will sleep for 2 sec then again try for that try block; look how i implimented in my small script of linkedin [image: image] https://user-images.githubusercontent.com/62801988/127309672-f13e0317-1c80-4f6c-a103-77af4f569001.png

should i improve your code and merge to this repo?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AkshaySiwal/LinkedIn_networking/issues/4#issuecomment-888209764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFGLMK5TSNG55WSGVXHWLTZ7NUNANCNFSM4RNV5JIA .

-- Terrence Brannon http://www.metalevel.link

metaperl avatar Jul 28 '21 23:07 metaperl