1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "Python",
11 "Java",
12 ],
13 "cities": [
14 "beijing",
15 "shanghai",
16 "shenzhen",
17 ],
18 "expandFilters": True,
19 "maxJobsTotal": 100,
20 "maxConcurrency": 3,
21 "proxyConfiguration": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 },
25 "requestDelay": 1000,
26}
27
28
29run = client.actor("logiover/lagou-tech-jobs-scraper").call(run_input=run_input)
30
31
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36