Skip to main content

Browser automation for already-open Chrome pages via Extension + WebSocket

Project description

PyWebFlx

Automação de navegador para páginas Chrome já abertas.

PyWebFlx conecta a páginas já abertas no Chrome via uma extensão (Manifest V3) + WebSocket. Diferente do Selenium, não cria sandbox — você automatiza o navegador real.

Instalacao

pip install pywebflx
pywebflx install-extension

Quick Start

import asyncio
from pywebflx import use_browser

async def main():
    async with use_browser(url="https://quotes.toscrape.com/") as browser:
        # Inspect — entender a pagina
        print(await browser.inspect(depth=5))

        # Extrair dados
        quotes = await browser.extract_data(
            container="body",
            row=".quote",
            columns={"texto": ".text", "autor": ".author"}
        )
        for q in quotes:
            print(f"{q['autor']}: {q['texto'][:60]}...")

asyncio.run(main())

Principais funcionalidades

Metodo Descricao
use_browser() Conecta a aba por URL/titulo, abre se nao existir
click() Clica (CSS, XPath ou texto)
type_into() Digita em campos
get_text() Extrai texto de elemento
extract_data() Extrai dados estruturados (cards, listas)
extract_table() Extrai tabelas HTML com paginacao
inspect() Visao resumida do DOM (otimizado pra IA)
wait_element() Espera elemento aparecer
execute_js() Executa JavaScript na pagina

Documentacao

https://theflexa.github.io/pywebflx/

Licenca

MIT

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

pywebflx-0.1.3.tar.gz (97.3 kB view details)

Uploaded Source

Built Distribution

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

pywebflx-0.1.3-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file pywebflx-0.1.3.tar.gz.

File metadata

  • Download URL: pywebflx-0.1.3.tar.gz
  • Upload date:
  • Size: 97.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywebflx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1e329c3a7770fd193d41df5cdcd80772324d3db6168928f6e30712ae6d126d9a
MD5 3090e8bfc78dae6d0f467df3b7f2f1a6
BLAKE2b-256 bfc101f3581daa0a2eda60715699f12626aa6faa4c77813de628af3010f11a99

See more details on using hashes here.

File details

Details for the file pywebflx-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pywebflx-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywebflx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 712bc4cfba696a2cafb7ec79f4f97b178c91e82d98a09ff1c93a6b4f6a61e0e6
MD5 679d806b501c48028bfb833c66cc3285
BLAKE2b-256 b4bb915290a393e563a0e615da780c0a8b2855b6aa32e3507a7a6ca3aeac7e82

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