Puppeeter / LinkedIn Scraper - Cookie Expiration Issue

Status
Not open for further replies.

verbalk

Newbie
Joined
Jun 11, 2024
Messages
2
Reaction score
3
Hey guys - I've developed a LinkedIn automation tool, but I'm encountering an issue with Puppeteer.

Overview
  • We use Puppeteer to log users into LinkedIn with their credentials.
  • After logging in, we extract their cookies.
  • We then close the Puppeteer session and use these cookies for direct API calls to LinkedIn endpoints.

Issue
  • The cookies extracted via Puppeteer and used with node fetch to make api calls to linkedin work initially but expire after just 1 hour.
  • The same issue occurs when we manually extract cookies in incognito mode using Chrome.
  • However, when we manually extract cookies using a regular browser session (non-incognito in chrome), they function as expected and remain valid for an extended period (weeks).

What I need help with :
  • We need to configure Puppeteer to extract cookies that don't expire after 1 hour - or explore an alternative solution (selenium ?)
  • My theory is that LinkedIn detects the session as inauthentic, similar to how it treats incognito sessions. The solution might involve better fingerprinting, but I'm not entirely sure.
  • Understand wtf is going on and why the behavior of puppeteer and incognito session in regular browser is the same
Additional infos :
  • We already use puppeteer-extra-plugin-stealth


Paid: YES
Budget: TBD
Any guidance would be appreciated as well
 
I can help
PM sent :)
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top