1.0.0 • Published 5 years ago

the-crawl v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

the-crawl

Build Status npm Version JS Standard

Crawler for the-frameworks

Installation

$ npm install the-crawl --save

Usage

'use strict'

const { TheCrawl } = require('the-crawl')

async function tryExample () {

  const pageFetcher = new TheCrawl(
    // Processor for page
    async (url, window) => {
      const { document } = window
      return {
        title: document.title,
        url,
      }
    }, {})
  const googleTopPage = await pageFetcher.process('https://www.google.com/')
  console.log('googleTopPage', googleTopPage)

}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links