Community藝術與設計github.com

browseract-ai/browseract

⚠️ Deprecated - Moved to https://github.com/browser-act/browseract-api-examples

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/browseract-ai/browseract/tree/main

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

說明文件

⚠️ This repository has been deprecated

This repository is no longer maintained. It has been moved to a new location:

➡️ browser-act/browseract-api-examples

Please use the new repository for the latest code, bug fixes, and documentation.

This repository will remain available as a read-only archive.


BrowserAct API Demo Collection

License: MIT Java Node.js Python

AI Web Scraper & Automation - Any Site, No Code, Zero Limits, Reliable Data

This repository contains comprehensive API demo code for BrowserAct, an AI-powered web scraping and automation platform. The demos showcase how to integrate BrowserAct's AI-Workflow capabilities into your applications using multiple programming languages.

🚀 Quick Start

🎯 For New Users (Recommended)

Start with scenario-based examples that demonstrate complete workflows:

  • Python: Scenarios-Python - Complete examples combining multiple APIs
    • scenario_1_run_and_wait.py - Run custom workflow and wait for completion
    • scenario_2_run_template_and_wait.py - Run template task and wait for completion (Best for beginners)
  • Java: Scenarios-Java - Complete examples combining multiple APIs
    • Scenario1RunAndWait.java - Run custom workflow and wait for completion
    • Scenario2RunTemplateAndWait.java - Run template task and wait for completion
  • Node.js: Scenarios-NodeJs - Complete examples combining multiple APIs
    • scenario1_runAndWait.js - Run custom workflow and wait for completion
    • scenario2_runTemplateAndWait.js - Run template task and wait for completion

📚 For API Reference

Choose your preferred language and explore individual API examples:

LanguageWorkflow APIScenario ExamplesQuick Start
PythonWorkflow-PythonScenarios-Pythonpython Scenarios-Python/scenario_1_run_and_wait.py
JavaWorkflow-JavaScenarios-Javacd Scenarios-Java && mvn exec:java -Dexec.mainClass="com.browseract.scenarios.Scenario1RunAndWait"
Node.jsWorkflow-NodeJsScenarios-NodeJsnode Scenarios-NodeJs/scenario1_runAndWait.js

📁 Project Structure

browseract-api-demos/
├── Workflow-Python/       # Python Workflow API demos
├── Workflow-Java/         # Java Workflow API demos
├── Workflow-NodeJs/       # Node.js Workflow API demos
├── Scenarios-Python/     # Python scenario-based examples (recommended for new users)
├── Scenarios-Java/        # Java scenario-based examples (recommended for new users)
├── Scenarios-NodeJs/      # Node.js scenario-based examples (recommended for new users)
├── .gitignore             # Git ignore rules
└── README.md              # This file

🎯 What is BrowserAct?

BrowserAct is an AI-powered web scraping and automation platform that provides two core capabilities:

🔄 AI-Workflow

  • Predefined Templates: Use pre-built workflows for common scraping tasks
  • Custom Workflows: Create your own automation sequences
  • Batch Processing: Handle multiple URLs and data sources efficiently

📚 API Capabilities

Workflow API Endpoints

EndpointMethodDescription
/v2/workflow/run-taskPOSTStart a new workflow task
/v2/workflow/stop-taskPUTPermanently terminate a task
/v2/workflow/get-taskGETGet detailed task information
/v2/workflow/get-task-statusGETGet task status only
/v2/workflow/list-tasksGETList all tasks
/v2/workflow/list-workflowsGETList all workflows
/v2/workflow/get-workflowGETGet workflow details

🛠 Language Support

Python

  • Version: Python 3.8+
  • Dependencies: requests for HTTP requests
  • Features: Simple, readable code with comprehensive error handling
  • Best for: Quick prototyping and data science workflows

Java

  • Version: Java 8+
  • Build Tool: Maven
  • Dependencies: Jackson for JSON processing, HttpURLConnection for HTTP requests
  • Features: Enterprise-grade code with proper package structure
  • Best for: Enterprise applications and microservices

Node.js

  • Version: Node.js 14+
  • Dependencies: Built-in https module
  • Features: Lightweight, async-first approach
  • Best for: Web applications and serverless functions

🔧 Configuration

Before running any examples, you'll need:

  1. API Key: Get your API key from BrowserAct Integrations
  2. Workflow ID (for Workflow API): Get your workflow ID from Workflow List

Update the configuration in each example file:

  • Replace "app-abcdefghijklmn" with your actual API key
  • Replace 1234567890 with your actual workflow ID

🔒 Security Best Practices

Important: The examples use placeholder API keys for demonstration purposes. In production:

  1. Never hardcode API keys in your source code
  2. Use environment variables or secure configuration files
  3. Keep your API keys confidential and rotate them regularly

Environment Variable Examples

# Python
import os
authorization = os.getenv("BROWSERACT_API_KEY")
// Java
String authorization = System.getenv("BROWSERACT_API_KEY");
// Node.js
const authorization = process.env.BROWSERACT_API_KEY;

📖 Documentation

🤝 Support

📄 License

This demo code is provided as-is for educational and development purposes under the MIT License.

🌟 Features

  • Multi-language Support: Python, Java, and Node.js implementations
  • Complete API Coverage: All BrowserAct API endpoints included
  • Production Ready: Enterprise-grade code with proper error handling
  • Easy to Use: Simple examples that can be run immediately
  • Well Documented: Comprehensive README files for each language
  • Modern Standards: Follows best practices for each language

Ready to get started? Choose your language above and dive into the examples! 🚀

Visit BrowserAct to learn more about our AI-powered web scraping platform.

相關技能

figma/figma-create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

community

jakubkrehel/oklch-skill

OKLCH color space for web projects. Convert hex/rgb/hsl to oklch, generate palettes, check contrast, handle gamut boundaries, and theme with Tailwind v4. Triggers on oklch, color conversion, palette generation, contrast ratio, gamut, display p3, design tokens, hue drift, chroma, dark mode colors.

community

wan-huiyan/git-squash

Smart git commit squashing with auto-detection of trivial commits via message, diff, and timing heuristics

community

refoundai/platform-strategy

Help users design and execute platform business strategies. Use when someone is building a marketplace, creating an ecosystem, deciding on API strategy, thinking about multi-sided network effects, or building developer platforms.

community

affaan-m/django-celery

Django + Celery async task patterns — configuration, task design, beat scheduling, retries, canvas workflows, monitoring, and testing. Use when adding background jobs, scheduled tasks, or async processing to a Django app.

community

rafaeldakombi2010-oss/claude-smi

Monitor and analyze Claude Code token usage and costs in real-time with a terminal UI tailored for Max, Team, and Enterprise subscribers.

community