1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://example.com",
11 "https://example.org",
12 "https://example.net",
13 "https://www.iana.org/help/example-domains",
14 ],
15 "texts": [
16 {
17 "id": "product-a",
18 "text": "Our stainless steel water bottle keeps drinks cold for 24 hours and hot for 12 hours. The double-wall vacuum insulation prevents condensation, the leak-proof lid fits in any backpack, and the powder-coated finish resists scratches. Dishwasher safe and free of BPA. Available in five colors and three sizes for the gym, the office or your next hike.",
19 },
20 {
21 "id": "product-a-copy",
22 "text": "Our stainless-steel water bottle keeps drinks cold for 24 hours and hot for 12 hours! The double-wall vacuum insulation prevents condensation, the leak-proof lid fits in any bag, and the powder-coated finish resists scratches. Dishwasher safe and free of BPA. Available in five colors and three sizes for the gym, the office or your next hike.",
23 },
24 {
25 "id": "product-b",
26 "text": "This ergonomic office chair features adjustable lumbar support, breathable mesh, 4D armrests and a synchronized tilt mechanism. The aluminium base and silent casters make it ideal for long working days at home or in the office. Assembly takes about ten minutes and the chair comes with a five-year warranty.",
27 },
28 ],
29 "proxyConfiguration": { "useApifyProxy": False },
30}
31
32
33run = client.actor("freecamp008/near-duplicate-finder").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40