JSPM

puppeteer-extra-plugin-proxy2

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q41094F
  • License MIT

Add proxy for puppeteer `page`, support `http`, `https`, `socks`. Based on [puppeteer-page-proxy](https://github.com/Cuadrix/puppeteer-page-proxy).

Package Exports

  • puppeteer-extra-plugin-proxy2
  • puppeteer-extra-plugin-proxy2/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (puppeteer-extra-plugin-proxy2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

puppeteer-extra-plugin-proxy2

Add proxy for puppeteer page, support http, https, socks. Based on puppeteer-page-proxy.

Install

$ npm i puppeteer-extra-plugin-proxy2 --save

Usage

const puppeteer = require('puppeteer-extra')
const PuppeteerExtraPluginProxy = require('puppeteer-extra-plugin-proxy2')

puppeteer.use(PuppeteerExtraPluginProxy({
  proxy: 'socks://4436632fee80:61e31d1d142f@185.217.0.145:57425',
  // proxy: 'http://xznskzdw:1ftadp8f9r4j@22.254.90.253:8243',
}))

;(async () => {
  const browser = await puppeteer.launch({
    headless: false
  })

  const page1 = await browser.newPage()
  await page1.goto("https://api.myip.com")

  const page2 = await browser.newPage()
  await page2.goto("https://api.my-ip.io/ip")

})().catch(console.error)