Module
📰 Deno module for deserializing RSS or ATOM XML feeds into typed objects
Very Popular
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778// https://validator.w3.org/feed/docs/rss2.html#requiredChannelElementsimport type { DublinCore } from "./dublin_core.ts";import type { MediaRss } from "./media_rss.ts";
export interface RSS2 { version: number; channel: Rss2Channel;}
export interface Rss2Channel extends DublinCore { title: string; link: string; description: string; items: Rss2Item[]; language?: string; copyright?: string; managingEditor?: string; webMaster?: string; pubDate?: Date; pubDateRaw?: string; lastBuildDate?: Date; lastBuildDateRaw?: string; category?: string[]; generator?: string; docs?: string; cloud?: Cloud; ttl?: number; image?: Image; textInput?: any; // TODO: Fix skipHours?: { hour?: number[]; }; skipDays?: { day?: string[]; };}
export interface Rss2Item extends DublinCore, MediaRss { title?: string; description?: string; link?: string; author?: string; categories?: string[]; comments?: string; enclosure?: Enclosure; guid?: string; pubDate?: Date; pubDateRaw?: string; source?: Source;}
interface Enclosure { url?: string; length?: number; type?: string;}
interface Source { title: string; url: string;}
interface Cloud { domain?: string; port?: number; path?: string; registerProcedure?: string; protocol?: string;}
interface Image extends DublinCore { url?: string; title?: string; link?: string; width?: number; height?: number;}