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 "maxResults": 10,
14 "jobIds": [],
15 "maxPagesPerSearch": 1,
16 "postedWithinDays": "7",
17 "jobType": "",
18 "remote": "",
19 "radius": 25,
20 "sort": "date",
21 "enrichmentMode": "fast",
22 "normalizeSalary": True,
23 "extractSkills": True,
24 "resolveApplyUrls": False,
25 "enrichCompanyProfiles": False,
26 "candidateProfile": {
27 "skills": [],
28 "targetSalaryAnnual": None,
29 },
30 "dedupe": True,
31 "outputMode": "compact",
32 "enableDeltaMonitoring": False,
33 "rawOutput": False,
34 "maxConcurrency": 6,
35 "maxRetries": 3,
36 "proxyConfiguration": {
37 "useApifyProxy": True,
38 "apifyProxyGroups": ["RESIDENTIAL"],
39 "apifyProxyCountry": "US",
40 },
41}
42
43
44run = client.actor("trakk/indeed-jobs-intelligence-scraper").call(run_input=run_input)
45
46
47print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
48for item in client.dataset(run["defaultDatasetId"]).iterate_items():
49 print(item)
50
51