1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jobPostings": [
10 {
11 "title": "Senior Software Engineer",
12 "companyName": "Acme Corp",
13 "description": "We are looking for a Senior Software Engineer with 5+ years of experience in Python, React, and AWS. Remote position. Salary range: $150,000 - $200,000 per year. Must have a BS in Computer Science. Join our fast-growing team!",
14 "location": "San Francisco, CA",
15 },
16 {
17 "title": "Junior Data Analyst",
18 "companyName": "DataFlow Inc",
19 "description": "Entry-level Data Analyst position. 1-2 years of experience with SQL, Python, Pandas, and Tableau preferred. On-site in New York. $65,000-$80,000/year. Multiple openings available.",
20 "location": "New York, NY",
21 },
22 ],
23 "maxJobs": 10,
24}
25
26
27run = client.actor("automation-lab/job-posting-enrichment").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34