Skip to main content

Production-ready Playwright wrapper with stealth and session management

Project description

Banner

flexinfer-browser-kit

Header

pipeline status coverage report

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


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

If you're not sure about the file name format, learn more about wheel file names.

flexinfer_browser_kit-0.2.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file flexinfer_browser_kit-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flexinfer_browser_kit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a38f805fb26bdb686c0b60ca6e9134dc82b5f1ed4b2defa19d4904eab982fba
MD5 d89e41599bd0ec5ca377c9f1a446fcdc
BLAKE2b-256 593ec9bea6e37d19cc852a0db730acffd2c72a49822eb4ecaed1b7fa555d19ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page