Skills sg-property-scraper
Search Singapore property rental and sale listings with flexible filters. Use when asked to search Singapore properties, find rental or sale listings, check property prices near MRT stations, or compare commute times. Supports filtering by listing type (rent/sale), property type (HDB/Condo/Landed), bedrooms, bathrooms, price range, size, TOP year, MRT station codes, distance to MRT, room type, availability, and commute time to a destination. Outputs JSON to stdout.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/5kbpers/sg-property-scraper" ~/.claude/skills/clawdbot-skills-sg-property-scraper && rm -rf "$T"
manifest:
skills/5kbpers/sg-property-scraper/SKILL.mdsource content
Singapore Property Scraper
Scrapes Singapore property listings via HTTP requests. Returns structured JSON.
Script Location
scripts/scrape.py
Relative to this SKILL directory. Run with:
python3 <SKILL_DIR>/scripts/scrape.py [OPTIONS]
Dependencies
- Python 3.8+
pip install curl_cffi beautifulsoup4 lxml- Optional:
env var for commute time calculation (Google Routes API)GOOGLE_MAPS_API_KEY
Quick Start
# Search 2BR condos for rent under SGD 4000 near Circle Line python3 scripts/scrape.py \ --listing-type rent --bedrooms 2 --max-price 4000 \ --property-type-group N --mrt-range CC:20-24 \ --output json # JSON input mode (easier for AI tools) python3 scripts/scrape.py --json '{ "listingType": "rent", "bedrooms": 2, "maxPrice": 4000, "propertyTypeGroup": ["N"], "mrtStations": ["CC20","CC21","CC22","CC23","CC24"] }' # Dry run: print URL only without scraping python3 scripts/scrape.py --dry-run --listing-type rent --bedrooms 3
Filter Parameters
| Flag | URL Param | Type | Description |
|---|---|---|---|
| | string | or |
| | string (repeatable) | =Condo, =Landed, =HDB |
| | string | for entire unit only; omit for all |
| | string (repeatable) | , , |
| | int | =room, =studio, - |
| | int | Number of bathrooms |
| | int | Minimum price (SGD) |
| | int | Maximum price (SGD) |
| | int | Minimum size (sqft) |
| | int | Maximum size (sqft) |
| | int | Minimum TOP year |
| | int | Maximum TOP year |
| | float | Max distance to MRT in km (e.g. , ) |
| | int | Availability filter |
| | string (repeatable) | MRT station code, e.g. |
| | string (repeatable) | MRT range, e.g. |
| | string | , , , |
| | string | , |
| | string | Destination address for commute time (requires ) |
Bedroom/Room Logic
= 4-bedroom entire unit--entire-unit-or-room ent --bedrooms 4
= studio--entire-unit-or-room ent --bedrooms 0
= room rental (master or common room)--bedrooms -1 --room-type master --room-type common- Omit
to show both entire units and rooms--entire-unit-or-room
MRT Station Syntax
- Individual station:
--mrt-station CC20 - Range (same line):
(expands to CC20, CC21, CC22, CC23, CC24)--mrt-range CC:20-24 - Multiple lines: use multiple flags
- In JSON:
or"mrtStations": ["CC20", "EW15"]
(tuple format)[["CC", [20, 24]]]
See
references/params.md for the complete list of ~213 valid MRT station codes.
Execution Parameters
| Flag | Description |
|---|---|
| Number of pages to scrape (default: 1) |
| Build and print URL(s), skip scraping |
| Skip parameter validation |
| HTTP request timeout in seconds (default: 30) |
| Extra URL query param (repeatable) |
| Output format (default: json when piped) |
| Verbose logging to stderr |
JSON Input Mode
Pass filters as a JSON string with
--json. Keys use camelCase matching the URL parameter names:
python3 scripts/scrape.py --json '{ "listingType": "rent", "propertyTypeGroup": ["N"], "bedrooms": 2, "bathrooms": 2, "maxPrice": 4000, "mrtStations": ["EW16", "EW17", "EW18"], "distanceToMRT": 0.75, "minTopYear": 1990 }'
Or load from a file:
--config filters.json
Output Format
JSON array on stdout (empty
[] if no results):
[ { "id": "23744236", "name": "Kingsford Waterbay", "price": "S$ 3,900 /mo", "psf": "S$ 4.53 psf", "address": "68 Upper Serangoon View", "bedrooms": "2", "bathrooms": "2", "area": "861 sqft", "type": "Condominium", "built": "Built: 2018", "availability": "Ready to Move", "mrt_distance": "14 min (1.15 km) from SE4 Kangkar LRT Station", "list_date": "Listed on Feb 15, 2026 (2d ago)", "agent": "May Chong", "agency": "PROPNEX REALTY PTE. LTD.", "headline": "Perfect work from home unit, river facing, unblocked high floor cozy", "link": "https://www.propertyguru.com.sg/listing/for-rent-kingsford-waterbay-23744236", "commute_driving": "25 mins", "commute_transit": "45 mins" } ]
Exit Codes
: Success, results found0
: Error (bad parameters, scraping failure)1
: Success but zero listings found2
Agent Usage Notes
When calling this script from an AI agent:
- Use
for structured output (default when piped)--output json - Use
flag for easier parameter passing than individual CLI flags--json - Use
to preview the search URL before scraping--dry-run - Use
if the user wants more results (each page has ~20 listings)--pages N - Use
with a destination address to calculate commute times (driving + transit) for each listing. Requires--commute-to
env var. If the key is not set, commute fields are omitted silently.GOOGLE_MAPS_API_KEY
andcommute_driving
fields are empty stringscommute_transit
when API key is missing or calculation fails""