1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchTerm": "software engineer",
10 "searchTerms": [],
11 "location": "New York, NY",
12 "sites": [
13 "linkedin",
14 "indeed",
15 "glassdoor",
16 ],
17 "maxResults": 10,
18 "jobType": "",
19 "hoursOld": 24,
20 "countryIndeed": "usa",
21 "googleSearchTerm": "",
22 "distance": 50,
23 "offset": 0,
24 "linkedinCompanyIds": [],
25 "descriptionFormat": "markdown",
26 "userAgent": "",
27 "caCert": "",
28 "proxyConfiguration": {
29 "useApifyProxy": True,
30 "apifyProxyGroups": ["RESIDENTIAL"],
31 },
32}
33
34
35run = client.actor("autoclawai/my-actor-2").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42