1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jobs": [
10 {
11 "title": "Senior Data Analyst",
12 "company": "Example Co",
13 "location": "Chicago, IL",
14 "description": "Hybrid role: 3 days a week in our Chicago office. 5+ years of SQL and BI experience required. Full-time. Salary $110,000–$130,000 per year. We are unable to sponsor work visas.",
15 },
16 {
17 "title": "Warehouse Associate",
18 "company": "Example Logistics",
19 "location": "Dallas, TX",
20 "description": "Entry level — no experience needed, we train you. Part-time evening shifts, in person at our Dallas warehouse. $18/hour.",
21 },
22 ],
23 "skills": [
24 "Python",
25 "SQL",
26 "AWS",
27 "Excel",
28 "Salesforce",
29 ],
30}
31
32
33run = client.actor("leoworks/job-posting-classifier").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