1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "language": "en",
10 "keywords": [
11 {
12 "id": "001",
13 "text": "how to choose roof panels",
14 },
15 {
16 "id": "002",
17 "text": "best roof panels price",
18 },
19 {
20 "id": "003",
21 "text": "buy roof panels",
22 },
23 {
24 "id": "004",
25 "text": "Acme customer portal",
26 },
27 {
28 "id": "005",
29 "text": "roof panels",
30 },
31 {
32 "id": "006",
33 "text": "how to buy the best roof panels",
34 },
35 ],
36 "brandTerms": ["Acme"],
37}
38
39
40run = client.actor("danielmichalek/search-intent-classifier").call(run_input=run_input)
41
42
43print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
44for item in client.dataset(run.default_dataset_id).iterate_items():
45 print(item)
46
47