Skip to content

Commit

Permalink
fix: Update linkedin.py connect
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr authored Apr 30, 2024
1 parent c7afef0 commit 4b9840b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naas_drivers/tools/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def connect(
):
# Init lk attribute
self.li_at = li_at
self.jessionid = jessionid
self.jessionid = jessionid.replace('"', '')

# Init cookies
self.cookies = {"li_at": self.li_at, "JSESSIONID": f'"{self.jessionid}"'}
Expand All @@ -141,7 +141,7 @@ def connect(
"X-Li-Lang": "en_US",
"Accept": "application/vnd.linkedin.normalized+json+2.1",
"Cache-Control": "no-cache",
"csrf-Token": self.jessionid.replace('"', ""),
"csrf-Token": self.jessionid,
"X-Requested-With": "XMLHttpRequest",
"X-Restli-Protocol-Version": "2.0.0",
}
Expand Down

0 comments on commit 4b9840b

Please sign in to comment.