1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchUrls": ["https://www.infojobs.net/jobsearch/search-results/list.xhtml?keyword=python"],
10 "keyword": "python",
11 "maxResults": 10,
12}
13
14
15run = client.actor("benthepythondev/infojobs-jobs-scraper").call(run_input=run_input)
16
17
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22