New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-real-browser

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-6.77%
Maintainers
1
Weekly downloads
 
Created
Source

puppeteer-real-browser

This package prevents Puppeteer from being detected as a bot in services like Cloudflare and allows you to pass captchas without any problems. It behaves like a real browser.

Warnings

  1. The fingerprints of the browsers created with this package are the same. https://fingerprint.com/demo/ You can check with services like. If you are using it for a service that checks fingerprints, you can get caught.
  2. It serves on a port on localhost to act like a real browser. The port must be closed when the process is finished. To close it, simply call browser.close(). In this method, operations to close the port are performed.
  3. Currently only available with windows.

installation

npm i puppeteer-real-browser

Usage

Use without proxy:

import {puppeteerRealBrowser} from 'puppeteer-real-browser'

puppeteerRealBrowser({})
    .then(async response => {
        var browser = response.browser
        var page = response.page
        await page.goto('https://auth0.openai.com/u/email-verification')
    })

Use with a proxy without auth information:

import {puppeteerRealBrowser} from 'puppeteer-real-browser'

puppeteerRealBrowser({
    proxy: {
        host: '<proxy-host>',
        port: '<proxy-port>',
    }
})
.then(async response => {
    var browser = response.browser
    var page = response.page
    await page.goto('https://auth0.openai.com/u/email-verification')
})

Use with a proxy with auth information:

import {puppeteerRealBrowser} from 'puppeteer-real-browser'

puppeteerRealBrowser({
    proxy: {
        host: '<proxy-host>',
        port: '<proxy-port>',
        username: '<proxy-username>',
        password: '<proxy-password>'
    }
})
.then(async response => {
    var browser = response.browser
    var page = response.page
    await page.goto('https://auth0.openai.com/u/email-verification')
})

The function returns you browser and page. Browser and page are created with puppeteer. You can run them with puppeteer functions.

Keywords

FAQs

Package last updated on 22 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc