Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

josep11/puppeteer-botbase

Repository files navigation

BOT BASE

Utilities to reuse codebase for Scraping with Puppeteer. Repo

Install

npm i git+https://github.com/josep11/puppeteer-botbase.git

To install a specific version or semver versions run:

It will pick it by the tag version. List of tags here

# this will install an exact version
npm i git+https://github.com/josep11/puppeteer-botbase.git#7.0.0
# this will install from semver version
npm i github:josep11/puppeteer-botbase.git#semver:^7.0.0

Config

Classes

To use and import the BotBase import like so:

    const { BotBaseFactory } = require("botbase");
    const BotBase = BotBaseFactory(puppeteer);
    class MyCustomBot extends BotBase {}

To use the helper class import:

const { helper } = require("botbase");

To use the Puppeteer Helper class import like so (all methods are static - as of version 0.1.0):

const { HelperPuppeteer } = require("botbase");