1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 { "url": "https://www.linkedin.com/jobs/search?keywords=Software%20Engineer&location=United%20States&geoId=103644278&f_PP=104555257&position=1&pageNum=0" },
11 { "url": "https://www.linkedin.com/jobs/view/4410745146/" },
12 ],
13 "keywords": ["Software Engineer"],
14 "location": "United States",
15 "locations": [
16 "United States",
17 "United Kingdom",
18 ],
19 "geoId": "103644278",
20 "placeIds": ["104555257"],
21 "jobTypes": [
22 "1",
23 "3",
24 ],
25 "remote": ["2"],
26 "experienceLevels": [
27 "4",
28 "5",
29 "6",
30 ],
31 "experienceLevel": ["5"],
32 "contractType": ["F"],
33 "companyNames": ["Microsoft"],
34 "proxy": {
35 "useApifyProxy": True,
36 "apifyProxyGroups": ["RESIDENTIAL"],
37 },
38}
39
40
41run = client.actor("memo23/apify-linkedin-search-results-scraper").call(run_input=run_input)
42
43
44print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
45for item in client.dataset(run["defaultDatasetId"]).iterate_items():
46 print(item)
47
48