ven0m

    0.1.0 • Public • Published

    Venom

    Getting Started

    Installation

    npm i venom
    # or "yarn add venom" 

    Usage

    1. Define a class

    const Venom = require('venom');
     
    class Example extends Venom {
      urls = [
        'https://example.com',
      ]
     
      parse() {
        const title = this.$('h1')
        console.log(title)
      }
     
      join_urls() {
        return this.$('a').attr('href')
      }
    }

    2. Start

    const puppeteer = require('puppeteer')
     
    (async () => {
      const broser = await puppeteer.launch()
      const example = new Example()
      await example.start(broser)
    })()

    Keywords

    none

    Install

    npm i ven0m

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.34 kB

    Total Files

    5

    Last publish

    Collaborators

    • 2xcvbnm