Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.52 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.52 KB

get-ppbrowser

pythonbuild-and-pytestCodeQLCode style: blackLicense: MITPyPI version

Instantiate a pyppeteer browser object.

Instalation

pip install get-ppbrowser
# pip  install get-ppbrowser -U  # to upgrade

or

poetry add get-ppbrowser
# poetry add get-ppbrowser@latest  # to upgrade

Usage

from get_ppbrowser import get_ppbrowser

browser = await get_ppbrowser()
page = await browser.newPage()
await page.goto("http://www.example.com")

PPBROWSER_HEADFUL, PPBROWSER_DEBUG, PPBROWSER_PROXY

Environment variables can be set with, for example, in Windows

set PPBROWSER_HEADFUL=1

or in Linux/iOS

export PPBROWSER_HEADFUL=1

or in python

import os

os.environ["PPBROWSER_HEADFUL"] = "1"