1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "cookies": [
9 {
10 "name": "li_at",
11 "value": "AQEDATBF1fcFFWD-AAABl0EnCcsAAAGXZTONy1YAvG6K6g1h7OFSD6AxUs5LKID3G40ZzP9vr_ziWH4sAmKlKRmnsr8EUg6e7luwOD13h9iZKs2nDU2iI6ozQP1I_P_60--6RI-wv-sWuKJuE3RsYiEW",
12 "domain": ".linkedin.com",
13 "path": "/",
14 "httpOnly": True,
15 "secure": True,
16 "sameSite": "None",
17 },
18 {
19 "name": "JSESSIONID",
20 "value": "ajax:7961322262816580745",
21 "domain": ".www.linkedin.com",
22 "path": "/",
23 "httpOnly": True,
24 "secure": True,
25 "sameSite": "None",
26 },
27 ] }
28
29
30run = client.actor("ayanxsarkar/linkedin-scrapper-actor").call(run_input=run_input)
31
32
33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35 print(item)
36
37