1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "liProfileUrl": "https://www.linkedin.com/in/example-profile/",
10 "maxCount": 10,
11 "texAuVariables": {
12 "yourFirstName": "",
13 "yourLastName": "",
14 "yourJobTitle": "",
15 "yourCompanyName": "",
16 "yourCompanyDescription": "Example company description",
17 "yourUsp": "Example USP",
18 },
19 "connectedAccountId": "example_connected_account_id",
20 "li_at": "example_li_at",
21 "JSESSIONID": "ajax:example",
22 "bcookie": "example_bcookie",
23 "liap": "true",
24 "li_theme_set": "app",
25 "li_theme": "light",
26 "timezone": "Asia/Calcutta",
27 "bscookie": "example_bscookie",
28 "user-agent": "Mozilla/5.0 ...",
29 "timezoneOffset": "5.5",
30 "csrf-token": "example_csrf-token",
31 "profileId": "example-profile-id",
32 "User-Agent": "Mozilla/5.0 ...",
33 "x-li-track": "{\"clientVersion\":\"1.13.455\"}",
34 "x-li-lang": "en_US",
35 "X-Restli-Protocol-Version": "2.0.0",
36 "txSmSelfProfileUrl": "https://www.linkedin.com/in/example-self/",
37 "proxy": {
38 "ip": "http://proxy.example.com",
39 "port": "1080",
40 "username": "example_username",
41 "password": "example_password",
42 },
43}
44
45
46run = client.actor("automationagents/linkedin-profile-activity-export").call(run_input=run_input)
47
48
49print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
50for item in client.dataset(run["defaultDatasetId"]).iterate_items():
51 print(item)
52
53