1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "bySocCode",
10 "socCodes": ["15-1252.00"],
11 "wageState": "",
12 "searchQuery": "electrician",
13 "jobZone": "4",
14 "brightOutlookCategory": "0",
15 "jobFamily": "15",
16 "industry": "51",
17 "careerCluster": "060100",
18 "stemCategory": "0",
19 "hotTechnology": "Python",
20 "brightOutlookOnly": False,
21 "maxItems": 50,
22 "proxyConfiguration": { "useApifyProxy": True },
23}
24
25
26run = client.actor("crawlerbros/onet-occupation-data-scraper").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33