Create a valid pyppeteer browser
Project description
get-ppbrowser
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"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
get-ppbrowser-0.1.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for get_ppbrowser-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298f48f52d892238268a858e475815ef1024b3c233d48f765b47c5fb5c7f3f35 |
|
MD5 | 528e2a5f7746373e03644374bc351a13 |
|
BLAKE2b-256 | 51a57aae8216b24b2c254bf81035c04e2f68347a1e93a62b761f271178d4b40f |