1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "profileScraperMode": "Full",
10 "searchQuery": "Marketing Manager",
11 "jobTitles": [],
12 "pastJobTitles": [],
13 "locations": [],
14 "currentCompanies": [],
15 "pastCompanies": [],
16 "schools": [],
17 "industryIds": [],
18 "yearsOfExperience": [],
19 "yearsAtCurrentCompany": [],
20 "startPage": 1,
21 "takePages": 1,
22 "maxItems": 0,
23 "automaticQuerySegmentationLevels": [
24 "Countries",
25 "State/Region",
26 ],
27 "targetCountries": [],
28 "mongoDbConnectionString": "",
29 "postFilteringMongoDbQuery": {},
30 "queries": [],
31 "urls": [],
32 "publicIdentifiers": [],
33 "profileIds": [],
34}
35
36
37run = client.actor("scrapeai/linkedin-profile-search").call(run_input=run_input)
38
39
40print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
41for item in client.dataset(run["defaultDatasetId"]).iterate_items():
42 print(item)
43
44