UNPKG

@hanivanrizky/nestjs-html-parser

Version:

A powerful NestJS HTML parsing service with XPath and CSS selector support, proxy configuration, random user agents, and rich response metadata including headers and status codes

33 lines (32 loc) 1.01 kB
/** * Otakudesu.cloud - Indonesian Anime Streaming Site Parser * * This example demonstrates parsing ongoing anime information from Otakudesu, * a popular Indonesian anime streaming website. We'll extract anime titles, * episode numbers, release dates, and other metadata from the ongoing anime section. * * Website: https://otakudesu.cloud/ * Focus: On-going Anime section (div.venz > ul > li structure) */ interface OngoingAnime { title: string; cleanTitle: string; episode: number; releaseDay: string; releaseDate: string; link: string; imageUrl: string; hasSubIndo: boolean; status: 'ongoing'; } interface OtakudesuStats { totalOngoingAnime: number; latestEpisodes: OngoingAnime[]; releaseSchedule: { [day: string]: number; }; popularTitles: string[]; averageEpisode: number; } declare function demonstrateOtakudesuParser(verbose?: boolean): Promise<void>; export { demonstrateOtakudesuParser, OngoingAnime, OtakudesuStats };