1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "csvText": """query,page,clicks,impressions,position
9best running shoes,https://example.com/best-running-shoes,120,4000,6.2
10best running shoes,https://example.com/blog/running-shoes-guide,15,2100,14.8
11best running shoes,https://example.com/shop/running,3,600,31.0
12running shoes for flat feet,https://example.com/flat-feet-shoes,80,1500,4.1
13how to clean running shoes,https://example.com/blog/clean-shoes,40,900,3.5
14how to clean running shoes,https://example.com/blog/shoe-care,22,850,7.9
15trail running shoes,https://example.com/trail-shoes,60,1800,5.0""" }
16
17
18run = client.actor("cygnix_labs/keyword-cannibalization-finder").call(run_input=run_input)
19
20
21print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
22for item in client.dataset(run.default_dataset_id).iterate_items():
23 print(item)
24
25