1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "urls": [
11 "https://www.ddproperty.com/en/property-for-sale/in-bangkok-th10",
12 "https://www.ddproperty.com/en/property-for-rent/in-bangkok-th10",
13 "https://www.ddproperty.com/en/property-for-sale",
14 "https://www.ddproperty.com/en/property-for-sale/in-bangkok-th10?page=2",
15 "https://www.ddproperty.com/en/property-for-sale?freetext=sukhumvit&propertyTypeCode=CONDO&minprice=2000000&bedrooms=2&sort=price&order=asc",
16 "https://www.ddproperty.com/en/property-for-sale/in-bangkok-th10/priced-under-1m-thb",
17 "https://www.ddproperty.com/en/property-for-sale/in-bang-bon-th1050",
18 "https://www.ddproperty.com/en/property-for-sale/near-e9-on-nut-bts-2174",
19 "https://www.ddproperty.com/en/condo-for-sale",
20 "https://www.ddproperty.com/en/detached-house-for-sale",
21 "https://www.ddproperty.com/en/commercial-property-for-sale",
22 "https://www.ddproperty.com/en/new-property-launch?listingType=sale&page=1",
23 "https://www.ddproperty.com/en/property/ideo-mobi-rama-9-bangkok-for-sale-500188725",
24 "https://www.ddproperty.com/en/property/project/chapter-one-spark-charan-bangkok-for-sale-500444048",
25 "https://www.ddproperty.com/en/agent/aksarapak-chittara-1265048",
26 "https://www.ddproperty.com/en/agent-directory",
27 "https://www.ddproperty.com/en/condo-for-sale/in-bangkok-th10",
28 "https://www.ddproperty.com/en/condo-for-sale?freetext=Sukhumvit",
29 "https://www.ddproperty.com/en/property-for-sale?freetext=Sukhumvit",
30 "https://www.ddproperty.com/en/new-property-launch?region_code=TH10",
31 ],
32 "proxy": {
33 "useApifyProxy": True,
34 "apifyProxyGroups": ["RESIDENTIAL"],
35 "apifyProxyCountry": "TH",
36 },
37 "ignoreFieldsForChanges": [],
38}
39
40
41run = client.actor("abotapi/ddproperty-scraper").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48