1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sourceMode": "search",
10 "queries": ["python"],
11 "cities": ["020000"],
12 "startUrls": [],
13 "experience": "all",
14 "education": "all",
15 "employmentType": "",
16 "companyType": "all",
17 "companySize": "all",
18 "industries": [],
19 "jobFunctions": [],
20 "salaryBand": "",
21 "postedWithin": "",
22 "sortBy": "0",
23 "excludeKeywords": [],
24 "includeRecruiterSignals": True,
25 "maxItems": 50,
26 "maxPagesPerSearch": 5,
27 "outputMode": "full",
28 "monitorMode": "snapshot",
29 "stateName": "default",
30 "includeUnchanged": False,
31 "notifyOnNoChanges": False,
32 "proxyConfiguration": { "useApifyProxy": True },
33 "notificationEvents": [
34 "NEW",
35 "UPDATED",
36 "REAPPEARED",
37 "EXPIRED",
38 ],
39}
40
41
42run = client.actor("getascraper/51job-scraper").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49