UNPKG

afacinemas

Version:

> A web scraper library for [AFA Cinemas](http://www.afacinemas.com.br/)

12 lines (11 loc) 402 B
import * as cheerio from 'cheerio'; import { BaseScraper } from '../base/base-scraper'; import { IHttpClient } from './http-client'; export declare abstract class AfaScraper<T = unknown> extends BaseScraper<T> { protected url: string; protected $: cheerio.CheerioAPI; httpClient: IHttpClient; constructor(); loadContent(): Promise<void>; abstract extract(): Promise<T | T[]>; }