Skip to main content

scitex-browser

SciTeX

Playwright wrappers for scholarly paper access — popup handling, PDF capture, failure-replay screenshots, stealth browsing.

Full Documentation · uv pip install scitex-browser[all]

PyPI Python Tests Coverage Docs License: AGPL v3


Problem and Solution

# Problem Solution
1 Playwright is great but verbose -- every scraping script reinvents popup dismissal, retry logic, Chrome-PDF-viewer workaround Helpers: click_with_fallbacks_async([sel1, sel2]), save_as_pdf_async, close_popups_async, inject_visual_effects — focused wrappers around Playwright
2 Tests fail silently with no artifact -- pytest-playwright doesn't auto-capture screen + DOM on failure TestMonitor + create_failure_capture_fixture -- captures screenshot + page HTML + console log on every failure

Features

  • Debugging: Visual cursor feedback, popup logging, failure capture, test monitoring
  • PDF: Chrome PDF viewer detection, save-as-PDF automation
  • Interaction: Click/fill with fallbacks, popup handling
  • Stealth: Human-like behavior simulation, stealth browser management
  • Remote: ZenRows API integration, CAPTCHA handling
  • Collaboration: Shared browser sessions, credential management
  • Auth: Google authentication helpers

Installation

pip install scitex-browser

Architecture

scitex-browser/
├── src/scitex_browser/
│   ├── __init__.py              # save_as_pdf, click_with_fallbacks_async, ...
│   ├── debugging/               # TestMonitor, capture_debug_artifacts_async
│   │   ├── _capture.py          # screenshot + HTML + console artifacts
│   │   └── _monitor.py          # pytest-playwright failure hook
│   ├── stealth/                 # StealthManager + playwright-stealth glue
│   ├── remote/                  # ZenRows API + CAPTCHA handling
│   ├── auth/                    # Google + shared-session helpers
│   └── pdf/                     # Chrome-PDF-viewer detection, save_as_pdf
└── tests/                       # pytest-playwright suite

Optional extras

pip install scitex-browser[stealth]   # playwright-stealth
pip install scitex-browser[remote]    # ZenRows integration
pip install scitex-browser[scitex]    # Full SciTeX integration

Quick start

from scitex_browser import save_as_pdf, browser_logger
from scitex_browser.stealth import StealthManager

1 Interfaces

Python API
from scitex_browser import (
    save_as_pdf, save_as_pdf_async,
    click_with_fallbacks_async, close_popups_async,
    inject_visual_effects, browser_logger,
)
from scitex_browser.stealth import StealthManager
from scitex_browser.debugging import (
    TestMonitor, create_failure_capture_fixture,
    capture_debug_artifacts_async,        # screenshot + HTML in one call
)

click_with_fallbacks_async and fill_with_fallbacks_async capture screenshot + HTML before/after every call by default (capture_debug=True). Drop capture_debug=False only in tight loops. See _skills/scitex-browser/11_debugging-visuals.md for the full pattern.

Demo

sequenceDiagram
    participant T as pytest test
    participant H as click_with_fallbacks_async
    participant P as Playwright Page
    participant C as capture_debug_artifacts_async
    T->>H: click(["#accept", ".cookie-ok"])
    H->>P: try selector 1
    P-->>H: not found
    H->>P: try selector 2 -> click
    H->>C: snapshot before/after
    C-->>T: screenshot.png + page.html + console.log

Part of SciTeX

scitex-browser is part of SciTeX. Install via the umbrella with pip install scitex[browser] to use as scitex.browser (Python) or scitex browser ... (CLI).

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0. See LICENSE for details.


SciTeX

Metadata

Release files for scitex-browser 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scitex-browser 0.1.15
File Size Uploaded Provenance
scitex_browser-0.1.15.tar.gz 9.5 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scitex-browser 0.1.15
File Interpreter ABI Platform
scitex_browser-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 MB

Release files / scitex_browser-0.1.15.tar.gz

Download URL scitex_browser-0.1.15.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
90c1ac6fb087050f743fbd8e8f0aa670392a5894fc9ab3a4c48dbd53029052cf
BLAKE2b-256 checksum
How to use checksums
047d7b9a440143e42507f5ff1c079b774f8503c90c9229678a15c6086944273b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Release files / scitex_browser-0.1.15-py3-none-any.whl

Download URL scitex_browser-0.1.15-py3-none-any.whl
Size 9.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9dc3bbb178f95eff0857c2996f4ad244bbef582def542f3d1ce23ae3fca9f084
BLAKE2b-256 checksum
How to use checksums
230e7247b323fc1a0b5914d4bb7f3afb04d5399ce9159d4ccb327e23f583af24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Security for scitex-browser 0.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scitex_browser-0.1.15.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page