1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "SEARCH",
10 "country": "us",
11 "queries": ["python developer"],
12 "locations": ["New York, NY"],
13 "jobIds": [],
14 "maxResults": 20,
15 "maxPagesPerSearch": 1,
16 "postedWithinDays": "7",
17 "jobType": "",
18 "remote": "",
19 "radius": 25,
20 "sort": "date",
21 "enrichmentMode": "full",
22 "dedupe": True,
23 "normalizeSalary": True,
24 "extractSkills": True,
25 "resolveApplyUrls": True,
26 "enrichCompanyProfiles": True,
27 "enableDeltaMonitoring": False,
28 "rawOutput": False,
29 "candidateProfile": {
30 "skills": [],
31 "targetSalaryAnnual": None,
32 },
33 "maxConcurrency": 4,
34 "maxRetries": 5,
35 "proxyConfiguration": {
36 "useApifyProxy": True,
37 "apifyProxyGroups": ["RESIDENTIAL"],
38 "apifyProxyCountry": "US",
39 },
40}
41
42
43run = client.actor("trakk/indeed-jobs-intelligence-scraper").call(run_input=run_input)
44
45
46print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
47for item in client.dataset(run["defaultDatasetId"]).iterate_items():
48 print(item)
49
50