1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": ["hotels in New York"],
10 "hotelUrls": [],
11 "checkInDate": "",
12 "checkOutDate": "",
13 "priceWindowEnd": "",
14 "adults": 2,
15 "children": 0,
16 "rooms": 1,
17 "currency": "USD",
18 "languageCode": "en",
19 "countryCode": "us",
20 "maxResults": 20,
21 "sortBy": "relevance",
22 "includePrices": True,
23 "includeReviews": False,
24 "proxyConfiguration": { "useApifyProxy": True },
25}
26
27
28run = client.actor("ahmed_jasarevic/google-hotels-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35