What problem does it solve?
This skill provides specialized automation and web scraping capabilities for PJE (Processo Judicial Eletrônico) across Brazilian tribunals, enabling reliable data extraction and streamlined workflows that reduce manual login and data retrieval time.
Core Features & Use Cases
- Executors PJE: TypeScript-based executors that run scraping locally, including PuppeteerPJEExecutor for development speed, PlaywrightPJEExecutor for production stealth, and an ExecutorFactory to auto-select the appropriate executor.
- Authentication Helpers: Centralized utilities to apply anti-detection configurations, process OTPs via a 2FAuth API, wait for SSO redirects, and extract lawyer IDs from cookies.
- API Integration: A REST API route at app/api/scrape-pje that accepts credentials, tribunal configuration, and scrape type (acervo, expedientes, pauta) to initiate scraping via a configured browser.
- Scraping Categories: Supports Acervo (active processes), Expedientes (notifications), and Pauta (hearing schedules) across tribunals.
- End-to-End Scraping Flow: Orchestrates frontend API calls to executor creation, automated login, OTP handling, data extraction via tribunal APIs, and structured return logs for frontend consumption.
Quick Start
Provide credentials, tribunal configuration, and optional browser preference to /api/scrape-pje to begin scraping.