1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "inputBusinesses": [
10 {
11 "businessName": "Hotel Jazz",
12 "category": "hotel",
13 "location": "Barcelona",
14 "website": "https://www.hoteljazz.com/",
15 },
16 {
17 "businessName": "Le Select",
18 "category": "restaurant",
19 "location": "Paris",
20 "website": "https://www.leselectmontparnasse.fr/",
21 },
22 ],
23 "country": "Spain",
24 "locations": [
25 "Barcelona",
26 "Nice",
27 "Lisbon",
28 ],
29 "businessTypes": [
30 "hotel",
31 "guest_house",
32 "apartment",
33 "restaurant",
34 "cafe",
35 ],
36 "overpassEndpoints": [
37 "https://overpass-api.de/api/interpreter",
38 "https://overpass.kumi.systems/api/interpreter",
39 ],
40}
41
42
43run = client.actor("viable_guard/hospitality-website-opportunity-scanner").call(run_input=run_input)
44
45
46print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
47for item in client.dataset(run["defaultDatasetId"]).iterate_items():
48 print(item)
49
50