UNPKG

drudgereport

Version:

Polls the DrudgeReport.com website and tracks the links

25 lines (24 loc) 690 B
export declare class DrudgeArticle { html: string; time: Date; location: string; index: number; source: string; href: string; latest: Date; } export declare class DrudgeFetch { ready: boolean; history: DrudgeArticle[]; latest: DrudgeArticle[]; constructor(); findNew(): Promise<DrudgeArticle[]>; isDuplicate(article: any): boolean; getLatest(): Promise<DrudgeArticle[]>; get(): Promise<{}>; parseHeadlines(body: string): any[]; parseMainHeadline(body: string): any[]; parseFirstColumn(body: string): any[]; parseSecondColumn(body: string): any; parseThirdColumn(body: string): any[]; }