OpenDOSM is a platform that collects, shows, and studies all the data from DOSM. Everything here is open-source and totally free for everyone to use for the good of the country. It includes datasets ranging from Population from each states and annual births to household income by percentile.
Another site to collect the data is data.gov.my. It has the same UI with helpful graphs for visualization of data.
Requests is the primary library used in the Python files above. Requests is a HTTP library, written by the legendary Kenneth Reitz.
pip install requests