A full indexed local codes by city and state
There is a public file, that holds all available Brazilian local codes. We crawled it and transformed it as json.
The json file holds all brazilian local codes using the following object:
[
{
"city": "ACREL\u00c2NDIA",
"code": 68,
"state": "AC"
},
...
]
Require it composer require pedrommone/brazilian-local-coodes
then use the proxy interface \BrazilianLocalCodes\Proxy::codes()
I don't think it will change in any future, but I'll keep the crawler engine here.
Can you run by yourself? Simple run docker-compose run app ./app crawler