LinkedIn_networking
LinkedIn_networking copied to clipboard
Randomize delay between connects?
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.
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
Thanks @metaperl and @sandeepnegi1996 , I will add this too.
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
should i improve your code and merge to this repo?
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