1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "language": "en",
10 "ownPages": [
11 {
12 "id": "own-home",
13 "text": "Steel roof panels. Roof repair guide.",
14 "sourceUrl": "https://example.com/own",
15 },
16 {
17 "id": "own-copy",
18 "text": "Steel roof panels. Roof repair guide.",
19 "sourceUrl": "https://example.com/own-copy",
20 },
21 ],
22 "referencePages": [
23 {
24 "id": "ref-solar",
25 "text": "Solar roof panels. Solar installation guide.",
26 "sourceUrl": "https://example.com/reference",
27 },
28 {
29 "id": "ref-price",
30 "text": "Solar panels price. Installation price guide.",
31 "sourceUrl": "https://example.com/reference-price",
32 },
33 ],
34}
35
36
37run = client.actor("danielmichalek/keyword-gap-analyzer").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44