1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "w1",
12 "url": "https://example.com/pricing",
13 "title": "Pricing",
14 "description": "Plans for teams",
15 "text": "Starter $19 Pro $49 Enterprise contact sales",
16 "emails": ["sales@example.com"],
17 "headings": [
18 "Pricing",
19 "Plans",
20 ],
21 },
22 {
23 "id": "w2",
24 "url": "https://example.com/features",
25 "title": "Features",
26 "description": "Automation features",
27 "text": "Workflows integrations agents",
28 "headings": ["Features"],
29 },
30 ],
31 "previousItems": [{
32 "id": "w1",
33 "url": "https://example.com/pricing",
34 "title": "Pricing",
35 "description": "Plans for teams",
36 "text": "Starter $15 Pro $39 Enterprise contact sales",
37 "emails": ["sales@example.com"],
38 "headings": [
39 "Pricing",
40 "Plans",
41 ],
42 }],
43}
44
45
46run = client.actor("quanmatrix/universal-web-structured-change-extractor").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53