Nefarious Planetary Meddling

    puppeteer-extra-plugin-session
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    puppeteer-extra-plugin-session

    warning sign

    ⚠️ This is a WIP: not ready to be used yet ⚠️

    TODO: SHORT introduction and behaviour explanation

    Dev notes

    The API should look like this:

    const session = await page.dumpSession()
    // we get an object that we can edit (important)
    await page.restoreSession(session)

    How to do this: puppeteer-extra-plugin-recaptcha example

    Installation

    yarn add puppeteer-extra-plugin-session
    # or
    npm install puppeteer-extra-plugin-session

    Usage

    First of all, you have to register the plugin with puppeteer-extra.

    JavaScript:

    puppeteer.use(require('puppeteer-extra-plugin-session')())

    TypeScript:

    import SessionPlugin from 'puppeteer-extra-plugin-session';
    puppeteer.use(SessionPlugin())

    TODO: in the field usage demonstration

    Testing

    TODO: testing guide

    Debugging

    You can see the package's logs by setting the DEBUG=puppeteer-extra-plugin:session env variable.

    Example: DEBUG=puppeteer-extra-plugin:session npm test

    Base Puppeteer-Extra Plugin System

    See the core Puppeteer-Extra Plugin docs for additional information: https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin

    Contributing

    We appreciate all contributions.

    See TODO.md

    License

    MIT

    Resources

    Install

    npm i puppeteer-extra-plugin-session

    DownloadsWeekly Downloads

    5

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    43.7 kB

    Total Files

    60

    Last publish

    Collaborators

    • gravitacion