1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "comparisonId": "sample-jobs",
10 "baseline": [{
11 "sourceId": "J-1",
12 "title": "Data Analyst",
13 "company": "Northwind",
14 "location": "Berlin",
15 "url": "https://jobs.example/J-1",
16 "description": "SQL and dashboards",
17 }],
18 "current": [
19 {
20 "sourceId": "J-1",
21 "title": "Senior Data Analyst",
22 "company": "Northwind",
23 "location": "Berlin",
24 "url": "https://jobs.example/J-1",
25 "description": "SQL, dashboards, and Python",
26 },
27 {
28 "sourceId": "J-2",
29 "title": "Data Engineer",
30 "company": "Northwind",
31 "location": "Remote",
32 "url": "https://jobs.example/J-2",
33 "description": "Build data pipelines",
34 },
35 ],
36}
37
38
39run = client.actor("ceddl/job-feed-change-detector").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46