1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Bangkok"],
11 "urls": [
12 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ",
13 "https://www.hipflat.co.th/คอนโดให้เช่า/กรุงเทพฯ",
14 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ?page=2",
15 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ/2ห้องนอน?sort=price_asc",
16 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ?sort=price_asc&page=2",
17 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ?price_min=3000000&price_max=5000000",
18 "https://www.hipflat.co.th/ขายคอนโด/กรุงเทพฯ/สาทร",
19 "https://www.hipflat.co.th/ขายคอนโด",
20 "https://www.hipflat.co.th/en/condo-for-sale/bangkok",
21 "https://www.hipflat.co.th/en/condo-for-rent/bangkok",
22 "https://www.hipflat.co.th/ads/cu3u02c083eu7th0e1a89n433u0he740",
23 "https://www.hipflat.co.th/en/ads/cu3u02c083eu7th0e1a89n433u0he740",
24 "https://www.hipflat.co.th/thailand-projects/condo/bangkok-bm",
25 "https://www.hipflat.co.th/thailand-projects/condo/bangkok-bm?page=2",
26 "https://www.hipflat.co.th/projects/31-residence-krkcne",
27 ],
28 "proxy": { "useApifyProxy": True },
29 "incrementalMode": False,
30 "emitUnchanged": False,
31 "emitExpired": False,
32 "ignoreFieldsForChanges": [],
33}
34
35
36run = client.actor("abotapi/hipflat-scraper").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43