1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productProfile": "We build n8n automation workflows for small businesses.",
10 "keywords": [
11 "n8n",
12 "automation",
13 ],
14 "posts": [
15 {
16 "id": "demo-buyer-1",
17 "title": "Looking for n8n automation help",
18 "text": "Our manual spreadsheets are too expensive to maintain. We have a budget and need a workflow provider.",
19 "url": "https://example.com/demo/buyer-1",
20 },
21 {
22 "id": "demo-buyer-2",
23 "text": "Looking for an alternative to our n8n automation setup. Comparing providers, willing to pay for help with manual work.",
24 "url": "https://example.com/demo/buyer-2",
25 },
26 {
27 "id": "demo-promotion",
28 "text": "Looking for n8n automation? Try our new app and use a discount code.",
29 "url": "https://example.com/demo/promotion",
30 },
31 {
32 "id": "demo-unrelated",
33 "text": "Looking for hiking shoes. Budget available. Which software compares boots?",
34 "url": "https://example.com/demo/unrelated",
35 },
36 {
37 "id": "demo-noise",
38 "text": "A useful guide to n8n automation for hobby projects.",
39 "url": "https://example.com/demo/noise",
40 },
41 {
42 "id": "demo-buyer-pl",
43 "text": "Szukam n8n automation dla malej firmy. Robimy to recznie, budzet jest ustalony. Potrzebuje pomocy.",
44 "url": "https://example.com/demo/buyer-pl",
45 },
46 ],
47}
48
49
50run = client.actor("danielmichalek/buying-intent-lead-scorer").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57