1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "dealType": "sale",
11 "propertyCategory": "all",
12 "propertyType": [],
13 "district": "any",
14 "areas": [],
15 "minPrice": 0,
16 "maxPrice": 0,
17 "bedrooms": [],
18 "bathrooms": [],
19 "sortBy": "newest",
20 "maxResults": 120,
21 "includeDetails": False,
22 "outputLanguage": "en",
23 "searchUrls": [],
24 "listingUrls": [],
25}
26
27
28run = client.actor("sian.agency/bazaraki-property-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