UNPKG

modelscrape

Version:

Cheerio-based scraping helper to scrape websites based on models/templates.

17 lines (14 loc) 331 B
"use strict"; const { loader, config } = require("./src"); // Use a nice table to print the report or error module.exports = ( pageTemplate = { url: `http://google.com`, /** * @type {Object[]} */ queryObjects: config.PAGES_COLLECTION } ) => { return loader(pageTemplate); };