1
In the Github repository below you have files json and other formats following the standard ISO 3166-1, specifying the country representation in 2-letter, 3-letter and 3-digit formats
https://github.com/juliolvfilho/lista-paises
Github repository with archive JSON according to Annex I Table 06 - eSocial layout version 2.4.01;
https://github.com/alexwedsday/tabela06-paises-eSocial
You can take this file and load it into memory as a Object Array, or use frameworks such as: Nodejs or Angular. To read this file in your host location.
An example if you press memory:
var paises = [{
"codigo": 13,
"pais": "Afeganistao",
"criacao": "-",
"extincao": ""
},
{
"codigo": 17,
"pais": "Albania, Republica Da",
"criacao": "-",
"extincao": ""
}
];
function popular() {
var table = document.getElementsByTagName("table")[0];
var tbody = table.getElementsByTagName("tbody")[0];
for (var i = 0; i < paises.length; i++) {
tbody.innerHTML +=
"<tr><td>" + paises[i].codigo + "</td><td>"
+ paises[i].pais + "</td><td>"
+ paises[i].criacao + "</td><td>"
+ paises[i].extincao + "</td></tr>";
}
}
<html>
<body onload="popular()">
<div class="tabela">
<table>
<thead>
<tr>
<td>Codigo</td>
<td>Paises</td>
<td>Criação</td>
<td>Extinção</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</body>
</html>
Note: Always provide a minimum code example.
there is no way to transform this imgaem in excel and register in the system?
– Julio Henrique
I have an HTML ready, but the code is very extensive, as I used Viacep javascript for city/ neighborhood/ street/ ibge also search for country but I did not find anything!
– Gustavo Freire