x-ray-puppeteer2

1.0.1 • Public • Published

x-ray-puppeteer2

Inspired by x-ray-chrome, but optimized with iframe content auto loaded additionally.

Install

npm install x-ray-puppeteer2

or

yarn add x-ray-puppeteer2

Usage

import Xray from "x-ray"
import XrayPuppeteer from "./x-ray-puppeteer.js"

const x = Xray().driver(
  XrayPuppeteer({
    executablePath: "/opt/homebrew/bin/chromium",
    cl: async (page, ctx) => {
      // do page operation here
      // parameters you can refer to: https://github.com/ssbeefeater/x-ray-chrome/blob/master/Readme.md
      await page.click("a.tab:nth-of-type(5)")
    },
  })
)

x("https://v2ex.com", "html", ["a.topic-link"])((err, obj) => {
  console.log(obj)
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i x-ray-puppeteer2

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.1 kB

Total Files

4

Last publish

Collaborators

  • sedgwickz