# Send sg-property-scraper to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sg-property-scraper",
    "name": "sg-property-scraper",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/5kbpers/sg-property-scraper",
    "canonicalUrl": "https://clawhub.ai/5kbpers/sg-property-scraper",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/sg-property-scraper",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sg-property-scraper",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "references/params.md",
      "README.md",
      "scripts/scrape.py",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "sg-property-scraper",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T15:36:57.656Z",
      "expiresAt": "2026-05-19T15:36:57.656Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sg-property-scraper",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sg-property-scraper",
        "contentDisposition": "attachment; filename=\"sg-property-scraper-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "sg-property-scraper"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/sg-property-scraper"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sg-property-scraper",
    "downloadUrl": "https://openagent3.xyz/downloads/sg-property-scraper",
    "agentUrl": "https://openagent3.xyz/skills/sg-property-scraper/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sg-property-scraper/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sg-property-scraper/agent.md"
  }
}
```
## Documentation

### 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: GOOGLE_MAPS_API_KEY env var for commute time calculation (Google Routes API)

### 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

FlagURL ParamTypeDescription--listing-typelistingTypestringrent or sale--property-type-grouppropertyTypeGroupstring (repeatable)N=Condo, L=Landed, H=HDB--entire-unit-or-roomentireUnitOrRoomstringent for entire unit only; omit for all--room-typeroomTypestring (repeatable)master, common, shared--bedroomsbedroomsint-1=room, 0=studio, 1-5--bathroomsbathroomsintNumber of bathrooms--min-priceminPriceintMinimum price (SGD)--max-pricemaxPriceintMaximum price (SGD)--min-sizeminSizeintMinimum size (sqft)--max-sizemaxSizeintMaximum size (sqft)--min-top-yearminTopYearintMinimum TOP year--max-top-yearmaxTopYearintMaximum TOP year--distance-to-mrtdistanceToMRTfloatMax distance to MRT in km (e.g. 0.5, 0.75)--availabilityavailabilityintAvailability filter--mrt-stationmrtStationsstring (repeatable)MRT station code, e.g. CC20--mrt-rangemrtStationsstring (repeatable)MRT range, e.g. CC:20-24--sortsortstringdate, price, psf, size--orderorderstringasc, desc--commute-tocommuteTostringDestination address for commute time (requires GOOGLE_MAPS_API_KEY)

### Bedroom/Room Logic

--entire-unit-or-room ent --bedrooms 4 = 4-bedroom entire unit
--entire-unit-or-room ent --bedrooms 0 = studio
--bedrooms -1 --room-type master --room-type common = room rental (master or common room)
Omit --entire-unit-or-room to show both entire units and rooms

### MRT Station Syntax

Individual station: --mrt-station CC20
Range (same line): --mrt-range CC:20-24 (expands to CC20, CC21, CC22, CC23, CC24)
Multiple lines: use multiple flags
In JSON: "mrtStations": ["CC20", "EW15"] or [["CC", [20, 24]]] (tuple format)

See references/params.md for the complete list of ~213 valid MRT station codes.

### Execution Parameters

FlagDescription--pages NNumber of pages to scrape (default: 1)--dry-runBuild and print URL(s), skip scraping--no-validateSkip parameter validation--timeout NHTTP request timeout in seconds (default: 30)--raw-param K=VExtra URL query param (repeatable)--output json|text|noneOutput format (default: json when piped)--verboseVerbose 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

0: Success, results found
1: Error (bad parameters, scraping failure)
2: Success but zero listings found

### Agent Usage Notes

When calling this script from an AI agent:

Use --output json for structured output (default when piped)
Use --json flag for easier parameter passing than individual CLI flags
Use --dry-run to preview the search URL before scraping
Use --pages N if the user wants more results (each page has ~20 listings)
Use --commute-to with a destination address to calculate commute times (driving + transit) for each listing. Requires GOOGLE_MAPS_API_KEY env var. If the key is not set, commute fields are omitted silently.
commute_driving and commute_transit fields are empty strings "" when API key is missing or calculation fails
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: 5kbpers
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T15:36:57.656Z
- Expires at: 2026-05-19T15:36:57.656Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/sg-property-scraper)
- [Send to Agent page](https://openagent3.xyz/skills/sg-property-scraper/agent)
- [JSON manifest](https://openagent3.xyz/skills/sg-property-scraper/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/sg-property-scraper/agent.md)
- [Download page](https://openagent3.xyz/downloads/sg-property-scraper)