espn-ff
Version:
ESPN Fantasy Football Scraper
21 lines (20 loc) • 578 B
TypeScript
import * as cheerio from 'cheerio';
export interface IContentParserProvider {
provide(): IContentParser[];
}
export interface IContentParser {
name: string;
parse(context: IParseContext): any;
}
export interface IParseContext {
selector: cheerio.Selector;
parseFragment(key: string, selector: cheerio.Selector): any;
}
export declare class ParserService {
private parsers;
constructor();
parseHtmlContent(key: string, html: string): any;
getParser(key: string): IContentParser;
x: any;
private addParsers(path);
}