chimi-scraper
Version:
A TypeScript library for scraping game data from itch.io with a clean, scalable architecture
29 lines • 828 B
TypeScript
import * as cheerio from 'cheerio';
import { IPrice } from '../models/types';
export declare class ParserUtils {
/**
* Extract price information from text
*/
static parsePrice(priceText: string): IPrice | undefined;
/**
* Extract platforms from icon classes
*/
static parsePlatforms($: cheerio.CheerioAPI, element: any): string[];
/**
* Clean and extract text content
*/
static cleanText(text: string): string;
/**
* Extract ID from URL
*/
static extractIdFromUrl(url: string): string;
/**
* Convert relative URL to absolute
*/
static toAbsoluteUrl(url: string, baseUrl: string): string;
/**
* Parse numeric values from text
*/
static parseNumber(text: string): number | undefined;
}
//# sourceMappingURL=parser.d.ts.map