1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentFeedText": """SKU,Title,Price,Availability,Brand
10A-100,Stainless Water Bottle 750ml,$22.99,in stock,Hydra
11A-101,Insulated Lunch Box,$32.00,out of stock,Hydra
12A-102,Bamboo Cutlery Set,$12.50,in stock,GreenKit
13A-103,Collapsible Coffee Cup - Sage,$18.00,in stock,GreenKit
14A-105,Glass Meal Prep Containers,\"$1,099.00\",in stock,Prepco
15A-106,Silicone Storage Bags,$21.00,in stock,Prepco
16A-107,Reusable Produce Bags,$9.99,preorder,Wrapsy
17""",
18 "previousFeedText": """SKU,Title,Price,Availability,Brand
19A-100,Stainless Water Bottle 750ml,$24.99,in stock,Hydra
20A-101,Insulated Lunch Box,$32.00,in stock,Hydra
21A-102,Bamboo Cutlery Set,$12.50,out of stock,GreenKit
22A-103,Collapsible Coffee Cup,$18.00,in stock,GreenKit
23A-104,Beeswax Food Wraps (3 pack),$15.00,in stock,Wrapsy
24A-105,Glass Meal Prep Containers,\"$1,049.00\",in stock,Prepco
25A-106,Silicone Storage Bags,$21.00,in stock,Prepco
26""",
27 "compareFields": ["Brand"],
28}
29
30
31run = client.actor("althorlabs/catalog-feed-diff").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38