File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ This is a Python scraper that extracts Chilean postal codes from [correos.cl](ht
99- Fully automated browser-based scraping (headless by default)
1010- Robust autocomplete handling for commune and street
1111- Input verification for all fields
12+ - Input normalization: supports uppercase/lowercase, tildes, and special characters
1213- JSON output:
1314 - On success: ` { "postalCode": "8260323" } `
1415 - On error: ` { "error": "..." } `
@@ -22,6 +23,7 @@ This is a Python scraper that extracts Chilean postal codes from [correos.cl](ht
2223
2324``` bash
2425pip install -r requirements.txt
26+ playwright install
2527```
2628
2729### 2. Run the scraper
@@ -58,6 +60,7 @@ python index.py "LA FLORIDA" "LAS ACACIAS" "7700"
5860
5961- This scraper uses ` Playwright ` under the hood.
6062- Form fields require autocomplete selection; manual filling is not enough.
63+ - Input values are normalized to match Correos' expected format (e.g. ` Peñalolén ` → ` PENALOLEN ` )
6164- Timeout is set to 20s by default per operation.
6265
6366---
You can’t perform that action at this time.
0 commit comments