1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://propertyscout.co.th/en/sales/" }],
10 "moreFeatures": [
11 "pet-friendly",
12 "swimming-pool",
13 ],
14 "areaPath": "bangkok/asok",
15 "transactions": ["sales"],
16 "propertyTypes": ["condo"],
17 "bedroomFilters": [
18 "studio",
19 "1-bedroom",
20 ],
21 "featureSlugs": [
22 "pet-friendly",
23 "ready-to-move",
24 ],
25 "locationPaths": ["bangkok/asok"],
26 "projectPaths": ["bangkok/condo/noble-remix"],
27 "customSearchPaths": ["sales/condo/1-bedroom/pet-friendly"],
28}
29
30
31run = client.actor("mai_amm/propertyscout-thailand-scraper").call(run_input=run_input)
32
33
34print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38