LinkedIn Session Timeout
I was trying to automate some of my regular activity in LinkedIn using stagehand & browser base.
I have enabled the proxy mapped it to close by location as well.
the account is getting logged out when I perform one or two actions.
The workflow
- grab the cookies, user agent, location from already logged in browser
- create a browser base session using the cookies and proxies
- navigate to posts and grab the impressions, likes, comments for tracking progress
How can I overcome this issue ?
2 Replies
Someone will reply to you shortly. In the meantime, this might help:
It sounds like LinkedIn detected some suspicious activity and logged you out. This is a complicated matter, and could actually lead to blocking your account: I would make some attempts with another, expendable, account, if you are using your main one.
There must be something that tells LinkedIn that you are using some bot, or an unusual session. Take a look at this page about blocking bots: https://docs.apify.com/academy/anti-scraping, and at some tools like this: https://camoufox.com/. Or, you could try implementing the login process in your workflow, which would be slower, but maybe more reliable.
Introduction | Camoufox
Camoufox is in active development! Releases are avaliable, but may not be suitable for production use.