1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "inputType": "text",
10 "cvsBatch": """John Smith
11Email: john@example.com
12Senior Software Engineer
135 years experience
14Skills: Python, JavaScript, SQL
15
16===
17
18Sarah Johnson
19Email: sarah@example.com
20Junior Developer
212 years experience
22Skills: HTML, CSS, React""",
23 "pdfUrls": [],
24 "jobTitle": "Software Engineer",
25 "jobDescription": "Looking for a Software Engineer with 3+ years of experience in Python and JavaScript. Must have strong problem-solving skills.",
26 "requiredSkills": [
27 "Python",
28 "JavaScript",
29 ],
30 "experienceYears": 3,
31}
32
33
34run = client.actor("peghin/easyhireapp---candidate-score").call(run_input=run_input)
35
36
37print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
38for item in client.dataset(run["defaultDatasetId"]).iterate_items():
39 print(item)
40
41