npm install scraper-dni-reniec
var scraper = require("scraper-dni-reniec");
scraper.getData("YOUR_PERUVIAN_DNI" , function (err , results) {
if ( err ) {
console.error(err);
} else {
console.log(results);
}
});
- scraper.getInformation(ruc,cb) => basic information
- scraper.getAllInformation(ruc,cb) => extended information
- scraper.addRegister(site_root, data) => Send data to API REST
[
{
"ruc": "20131312955",
"social_reason": "SUPERINTENDENCIA NACIONAL DE ADUANAS Y DE ADMINISTRACION TRIBUTARIA",
"contributor_type": "INSTITUCIONES PUBLICAS",
"document_type": "",
"owner": "",
"business_name": "-",
"registration_date": "04/05/1993",
"status": "ACTIVO",
"condition": "HABIDO",
"fiscal_address": "AV. GARCILASO DE LA VEGA NRO. 1472 LIMA - LIMA - LIMA"
}
]
[
{
...
"email_address": null,
"phone": null,
"economic_activities": "Principal - CIIU 75113 - ACTIV. ADMINIST. PUBLICA EN GENERAL",
"authorized_vouchers": "FACTURA,BOLETA DE VENTA,NOTA DE CREDITO,NOTA DE DEBITO,GUIA DE REMISION - REMITENTE,COMPROBANTE DE RETENCION,POLIZA DE ADJUDICACION POR REMATE DE BIENES",
"electronic_vouchers": "FACTURA PORTAL DESDE 07/08/2013",
"ple_affiliation": "01/01/2013",
"standards": "Incorporado al Régimen de Agentes de Retención de IGV (R.S.037-2002) a partir del 01/06/2002"
}
]