UNPKG

contract-scraper

Version:

A customisable data scraper for the web based on JSON contracts

16 lines (15 loc) 581 B
import Fetcher from './fetcher'; import { ScrapedPage } from '../fetcher/fetcher'; import { HTTPResponse, PuppeteerNodeLaunchOptions } from 'puppeteer'; export default class PuppeteerFetcher implements Fetcher { private url; private waitForPageLoadSelector; private options; constructor(url: string, waitForPageLoadSelector?: string, options?: PuppeteerNodeLaunchOptions); getBrowserType(): import("puppeteer").PuppeteerNode; setupBrowser(): Promise<{ response: HTTPResponse; contents: string; }>; getPage(): Promise<ScrapedPage>; }