postal-code-scraper
Version:
A tool for scraping country data, including regions and their postal codes
8 lines (7 loc) • 429 B
TypeScript
import { Region, ScraperConfig } from "../types";
export declare class Parser {
static parseRegions($: cheerio.Root, config: ScraperConfig): Region[];
static parsePostalCodes($: cheerio.Root, config: ScraperConfig): Record<string, string[]>;
static parseCountries($: cheerio.Root, config: ScraperConfig): Region[];
static parseCountryByName($: cheerio.Root, config: ScraperConfig, name: string): Region | null;
}