1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [],
10 "query": "data engineer",
11 "location": "",
12 "geo": "TOTALJOBS",
13 "minSalary": 0,
14 "language": "",
15 "fromDate": "",
16 "toDate": "",
17 "maxResults": 25,
18 "maxPages": 5,
19 "outputFields": [],
20 "datasetName": "",
21 "stateStoreName": "totaljobs-state",
22 "dedupStoreName": "",
23 "dedupKey": "jobKey",
24 "proxyConfiguration": {
25 "useApifyProxy": True,
26 "apifyProxyGroups": ["RESIDENTIAL"],
27 "apifyProxyCountry": "GB",
28 },
29}
30
31
32run = client.actor("parsebird/totaljobs-scraper").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39