1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "queries": ["python developer"],
11 "location": "",
12 "urls": [
13 "https://www.dice.com/jobs?q=python%20developer&countryCode=US",
14 "https://www.dice.com/jobs?q=python&location=Austin%2C%20TX%2C%20USA&page=2&filters.postedDate=ONE",
15 "https://www.dice.com/jobs?q=python&filters.workplaceTypes=Remote&filters.employmentType=FULLTIME&sort=posted",
16 "https://www.dice.com/jobs/q-python-jobs",
17 "https://www.dice.com/jobs/q-python-l-Austin%2C_TX-jobs",
18 "https://www.dice.com/jobs-in-austin-tx",
19 "https://www.dice.com/jobs-in-texas",
20 "https://www.dice.com/job-detail/a47d1c79-25d6-4fba-be46-04290abe1864",
21 "https://dice.com/jobs?q=python",
22 ],
23 "proxy": { "useApifyProxy": True },
24 "incrementalMode": False,
25 "emitUnchanged": False,
26 "emitExpired": False,
27 "ignoreFieldsForChanges": [],
28}
29
30
31run = client.actor("abotapi/dice-com-scraper").call(run_input=run_input)
32
33
34print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38