the-crawl

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i the-crawl

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

48.5 kB

Total Files

33

Last publish

Collaborators

  • okunishinishi