|
34 | 34 | "Chrome/83.0.4103.116 Safari/537.36",
|
35 | 35 | ]
|
36 | 36 | ),
|
37 |
| - # "accept": "application/vnd.linkedin.normalized+json+2.1", |
38 | 37 | "accept-language": "en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
|
39 | 38 | "x-li-lang": "en_US",
|
40 | 39 | "x-restli-protocol-version": "2.0.0",
|
41 | 40 | "x-li-track": json.dumps(
|
42 | 41 | {
|
43 |
| - "clientVersion": "1.2.6216", |
| 42 | + "clientVersion": "1.13.8031", |
| 43 | + "mpVersion": "1.13.8031", |
44 | 44 | "osName": "web",
|
45 |
| - "timezoneOffset": 10, |
| 45 | + "timezoneOffset": 0, |
| 46 | + "timezone": "Etc/UTC", |
46 | 47 | "deviceFormFactor": "DESKTOP",
|
47 | 48 | "mpName": "voyager-web",
|
48 | 49 | }
|
@@ -517,7 +518,12 @@ async def _listen_to_event_stream(self):
|
517 | 518 |
|
518 | 519 | async with self.session.get(
|
519 | 520 | REALTIME_CONNECT_URL,
|
520 |
| - headers={"content-type": "text/event-stream", **REQUEST_HEADERS}, |
| 521 | + headers={ |
| 522 | + "accept": "text/event-stream", |
| 523 | + "connection": "keep-alive", |
| 524 | + "x-li-accept": "application/vnd.linkedin.normalized+json+2.1", |
| 525 | + **REQUEST_HEADERS, |
| 526 | + }, |
521 | 527 | # The event stream normally stays open for about 3 minutes, but this will
|
522 | 528 | # automatically close it more agressively so that we don't get into a weird
|
523 | 529 | # state where it's not receiving any data, but simultaneously isn't closed.
|
|
0 commit comments