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