Skip to content

A Python script to systematically scrape and save Malaysia postcode data from pos.com.my's API endpoint. Retrieves detailed location information for all possible 5-digit postcodes (00000-99999) and exports to CSV.

Notifications You must be signed in to change notification settings

LeeRenJie/malaysia-postcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MY Postcode Scraper 🇲🇾 (Credit to this repo)

A Python script to scrape Malaysia postcode data from pos.com.my's API (00000-99999).

Features ✨

  • ✔️ Generates all possible 5-digit postcodes
  • ✔️ Error handling & retry logic
  • ✔️ Rate limiting (1 request/second)
  • ✔️ CSV export with Pandas
  • ✔️ Progress tracking
  • ✔️ Duplicate prevention

Requirements 📦

pip install pandas requests

Usage

python postcode_scraper.py

About

A Python script to systematically scrape and save Malaysia postcode data from pos.com.my's API endpoint. Retrieves detailed location information for all possible 5-digit postcodes (00000-99999) and exports to CSV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages