Production-ready Playwright wrapper with stealth and session management
Project description
flexinfer-browser-kit
Production-ready browser automation library for Python, built on Playwright. Features advanced stealth evasion techniques and robust session management.
Features
- Stealth Mode: Pre-configured evasion scripts to bypass bot detection (custom args, JS injection).
- Session Management: persistent context storage with file locking for safe concurrency.
- Resilience: Configurable timeouts, proxy support, and automatic retries.
Installation
pip install flexinfer-browser-kit
# For stealth features
pip install "flexinfer-browser-kit[stealth]"
Usage
Basic Scraping
from browser_kit import BrowserManager
manager = BrowserManager(headless=True)
with manager.new_context() as context:
page = context.new_page()
page.goto("https://network-tools.com/request")
print(page.title())
Stealth Mode
from browser_kit import BrowserManager
# Uses custom args and evasion scripts by default
manager = BrowserManager(
headless=True,
stealth=True, # Enable evasion
user_agent="Mozilla/5.0..."
)
with manager.new_context() as context:
page = context.new_page()
page.goto("https://bot-detection-check.com")
Persistent Sessions
manager = BrowserManager(storage_dir="./sessions")
# Automatically loads/saves cookies to ./sessions/my-session.json
context = manager.new_context(session_id="my-session")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flexinfer_browser_kit-0.2.1-py3-none-any.whl.
File metadata
- Download URL: flexinfer_browser_kit-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a38f805fb26bdb686c0b60ca6e9134dc82b5f1ed4b2defa19d4904eab982fba
|
|
| MD5 |
d89e41599bd0ec5ca377c9f1a446fcdc
|
|
| BLAKE2b-256 |
593ec9bea6e37d19cc852a0db730acffd2c72a49822eb4ecaed1b7fa555d19ba
|