Skip to content

carsonmulligan/browser-use-examples

Repository files navigation

DeepSeek Browser Automation Framework

Agent Architecture

  [Task String] 
       β”‚
       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Task Parser  │──▢ [Step 1: Navigate]
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    [Step 2: DOM Query]
       β”‚             [Step 3: Input Fill]
       β–Ό             [Step N: Action Commit]
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Action Queue  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚
       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  LLM Processor    β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ Vision Engine │←───[Page Screenshot]
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚
       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Browser Instance  β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚   WebDriver   │─┐│
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚   DevTools    β”‚β†β”˜
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Implementation Examples

Proton Mail Agent (deepseek_proton_mail.py)

Agent(
    task="1. Navigate to proton.me\n2. Authenticate\n3. Compose email",
    llm=ChatOpenAI(model='deepseek-chat'),
    browser=Browser(
        headless=False,
        security_profile="enterprise"
    ),
    action_delay=1.2  # Human-like intervals
)
[Agent]                   [Browser]
   β”‚                         β”‚
   │──GET proton.me─────────▢│
   │◀─DOM+Metrics─────────────│
   │──Fill #username─────────▢│
   │──Fill #password─────────▢│
   │──Click .signin-btn──────▢│
   │◀─Nav Success─────────────│

Reddit Automation (deepseek_reddit.py)

[Agent]                   [Reddit]
   β”‚                         β”‚
   │──OAuth2 Token──────────▢│
   │◀─Session Cookie─────────│
   │──POST /submit───────────▢│
   │◀─Post ID─────────────── ─│
   │──PUT /vote──────────────▢│
   │◀─200 OK──────────────────│

YouTube Automation (deepseek_youtube.py)

[Agent]                   [YouTube]
   β”‚                         β”‚
   │──GET /──────────────────▢│
   │◀─Page DOM─────────────── β”‚
   │──Fill search box────────▢│
   │──Click search button────▢│
   │◀─Results DOM─────────────│
   │──Click video result─────▢│
   │◀─Video Started───────────│

Core Interaction Pattern

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   Chromium   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  DeepSeek  │◀──Driver───▢ β”‚  Browser  β”‚
β”‚   Agent    β”‚  DevTools    β”‚  Instance β”‚
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ Protocol     β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜
       β”‚                          β”‚       
       └──────Page Interactionβ”€β”€β”€β”€β”˜
            β€’ DOM Manipulation
            β€’ Network Intercept
            β€’ Performance Metrics
  • Video discovery workflow
  • Filter system integration
  • Playback verification
  • Adaptive wait conditions

About

πŸ€– Browser use automation examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages