1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchTerms": ["all jobs"],
10 "startUrls": [
11 { "url": "https://remoteok.com/remote-react-jobs" },
12 { "url": "https://remoteok.com/remote-dev-jobs.json?order_by=salary" },
13 { "url": "https://remoteok.com/" },
14 { "url": "https://remoteok.com/api?tag=python" },
15 { "url": "https://remoteok.com/remote-python-jobs?page=2" },
16 { "url": "https://remoteok.com/remote-jobs?search=python" },
17 { "url": "https://www.remoteok.com/remote-dev-jobs" },
18 ],
19 "proxy": {
20 "useApifyProxy": True,
21 "apifyProxyGroups": [],
22 },
23}
24
25
26run = client.actor("abotapi/remoteok-com-scraper").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33