0.2.2 • Published 4 years ago

@scrape-it-all/core v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

core

Core module that initiate puppeteer and expose the Browser instance so packages can use it to actually scrape stuff. Also, it provides some common functions that might be used among packages.

Usage

import core, { CoreArgs } from '@scrape-it-all/core';

const scrape = async ({ browser, metadata }: CoreArgs): Promise<ScrapeResult> => {
  ...
}

export default {
  scrape: core.wrapper(scrape),
};