1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.ziprecruiter.com/jobs-search?form=jobs-landing&search=fire+alarm+technician&location=New+York%2C+NY" }],
10 "searchJobKeyword": "software engineer",
11 "searchLocation": "New York, NY",
12 "searchCompany": "Acme Corp",
13 "searchPostedWithinDays": 7,
14 "searchRadiusMiles": 25,
15 "searchMinSalary": 60000,
16 "searchMaxSalary": 150000,
17 "searchStartPage": 1,
18 "maxItems": 100,
19 "maxConcurrency": 10,
20 "minConcurrency": 1,
21 "maxRequestRetries": 30,
22 "proxy": {
23 "useApifyProxy": True,
24 "apifyProxyGroups": ["RESIDENTIAL"],
25 "apifyProxyCountry": "US",
26 },
27}
28
29
30run = client.actor("memo23/ziprecruiter-scraper-ppe").call(run_input=run_input)
31
32
33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35 print(item)
36
37