1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [],
10 "keywords": [],
11 "excludeKeywords": [],
12 "location": "",
13 "sinceDate": "",
14 "maxItems": 20,
15 "tags": [
16 "python",
17 "react",
18 ],
19 "company": "",
20 "minSalary": 0,
21 "maxSalary": 0,
22 "salaryOnly": False,
23 "includeDescription": False,
24 "includeDescriptionHtml": False,
25 "maxRunSeconds": 270,
26 "runTag": "",
27}
28
29
30run = client.actor("fetch_cat/remoteok-jobs-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37