1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQueries": ["Paris, France"],
11 "listingUrls": ["https://www.airbnb.com/rooms/1536119775792438782"],
12 "adults": 1,
13 "children": 0,
14 "infants": 0,
15 "pets": 0,
16 "currency": "USD",
17 "superhostOnly": False,
18 "instantBookOnly": False,
19 "guestFavoriteOnly": False,
20 "maxItems": 20,
21 "fetchDetails": False,
22 "includeReviews": False,
23 "maxReviewsPerListing": 20,
24 "incrementalMode": False,
25 "emitUnchanged": False,
26 "emitExpired": False,
27 "maxNotifyListings": 50,
28 "proxyConfiguration": { "useApifyProxy": True },
29}
30
31
32run = client.actor("abotapi/airbnb-stays-reviews-scraper").call(run_input=run_input)
33
34
35print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39