1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "auto",
10 "searchQuery": "artificial intelligence",
11 "searchQueries": [],
12 "postUrls": [],
13 "sortBy": "relevance",
14 "datePosted": "",
15 "postedAfter": "",
16 "postedBefore": "",
17 "authorType": "",
18 "contentType": [
19 "articles",
20 "posts",
21 "documents",
22 "videos",
23 "images",
24 ],
25 "minReactions": 0,
26 "minComments": 0,
27 "excludeReposts": False,
28 "includeUnmatched": False,
29 "language": "en",
30 "countryCode": "auto",
31 "maxResults": 3,
32 "hydratePosts": True,
33 "includeVideoTranscript": False,
34 "monitorMode": False,
35 "emitNoResultsMarker": True,
36 "mentions": [],
37 "mentionsCompany": "",
38 "mentionsPerson": "",
39 "talksAbout": [],
40 "includeDocumentDetails": False,
41 "includeRepostCounts": False,
42 "enrichSdui": False,
43}
44
45
46run = client.actor("vexaloom-labs/linkedin-keyword-and-hashtag-post-discovery").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53