get-mexican-data-by-curp
Version:
Verify CURP and obtain personal information from the Mexican government CURP. It scrapes official site and another providers.
13 lines (12 loc) • 404 B
TypeScript
import { Mexican, Provider } from '../models';
import { Curp } from '../models';
import { CaptchaSolver } from './CaptchaSolver';
export declare class GovernmentScrapper extends Provider {
private captchaSolver;
constructor(captchaSolver: CaptchaSolver);
private static parseResponse;
provide(curpId: Curp): Promise<Mexican | {
error: string;
} | null>;
private ensure;
}