1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9    "query": "hiring (developer OR engineer OR programmer)",
10    "limiter": {
11        "previousPost": "urn:li:activity:7250170481335758841",
12        "maxTime": None,
13    },
14    "filters": {
15        "posterType": "Person",
16        "hasImage": True,
17        "hasVideo": False,
18        "hasDocument": False,
19        "isJobPosting": False,
20        "profile": { "minFollowerCount": 100 },
21    },
22}
23
24
25run = client.actor("scary_good_apis/linkedin-search-posts").call(run_input=run_input)
26
27
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30    print(item)
31
32