chimi-scraper
Version:
A TypeScript library for scraping game data from itch.io with a clean, scalable architecture
16 lines • 543 B
TypeScript
import { IGameInfo, IGameResult, ISearch } from './types';
export declare abstract class BaseParser {
protected baseUrl: string;
protected name: string;
protected classPath: string;
constructor(baseUrl: string, name: string, classPath: string);
/**
* Search for games
*/
abstract search(query: string, page?: number): Promise<ISearch<IGameResult>>;
/**
* Get detailed game information
*/
abstract fetchGameInfo(gameId: string): Promise<IGameInfo>;
}
//# sourceMappingURL=base-parser.d.ts.map