Skip to content

valdezmanuel/curp-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curp-scraper

Web scraper that extracts CURP details from RENAPO website (Mexico).

Installation

To use the scraper in your own nodejs projects:

$ npm install curp-scraper

Example

    const curpScraper = require('curp-scraper');

    curpScraper.getCurpDetails('VALID CURP', (error, response) => {
        if (error) {
            console.log("error", error);
        } else {
            console.log("response", response);
            /**
            *  response: {
            *    Apellido1: 'TEST',
            *    Apellido2: 'TEST',
            *    CRIP: '',
            *    CveEntidadEmisora: '',
            *    CveEntidadNac: 'SL',
            *    CveMunicipioReg: '001',
            *    DocProbatorio: '1',
            *    FechNac: '10/10/1994',
            *    Foja: '',
            *    FolioCarta: '',
            *    Libro: '',
            *    Nacionalidad: 'MEX',
            *    Nombres: 'TEST',
            *    NumActa: '02171',
            *    NumEntidadReg: '22',
            *    NumRegExtranjeros: '',
            *    Sexo: 'H',
            *    StatusCurp: 'RCN',
            *    Tomo: ''
            *   }
            **/
        }   
    })

License

MIT License

About

Web scraper that extracts CURP details from RENAPO website (Mexico).

Resources

License

Stars

Watchers

Forks

Packages

No packages published