1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "id": "page-a",
11 "text": "Our wireless headphones offer premium sound quality with active noise cancellation and up to 30 hours of battery life.",
12 },
13 {
14 "id": "page-b",
15 "text": "These wireless headphones offer premium sound quality with active noise cancellation and up to 30 hours of battery life, plus a carrying case.",
16 },
17 ] }
18
19
20run = client.actor("victor187/duplicate-content-similarity-checker").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27