1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "inputBusinesses": [{
10 "businessName": "Hotel Nice",
11 "category": "hotel",
12 "location": "Sorrento",
13 "website": "http://www.hotelnicesorrento.com/",
14 }],
15 "locations": [
16 "Rimini",
17 "Sorrento",
18 "Desenzano del Garda",
19 ],
20 "businessTypes": [
21 "hotel",
22 "guest_house",
23 "restaurant",
24 ],
25 "overpassEndpoints": [
26 "https://overpass-api.de/api/interpreter",
27 "https://overpass.kumi.systems/api/interpreter",
28 ],
29}
30
31
32run = client.actor("viable_guard/italian-hospitality-lead-qualifier").call(run_input=run_input)
33
34
35print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37 print(item)
38
39