Files
bhushanct 511e36b660 Add auto-advance: click Next, scroll to top, capture next page
After each capture the controller asks the vision model to locate a 'Next'
control (returned as normalized screen coordinates), clicks it via OS input,
scrolls to top, and continues the loop. Configurable via SCREEN_LEADS_AUTO_NEXT
/ _NEXT_LOAD_PAUSE / _MAX_AUTO_NEXT, with a per-run safety cap.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 07:56:13 +05:30

26 lines
932 B
Bash

# Copy to .env and fill in. Only ANTHROPIC_API_KEY is required.
ANTHROPIC_API_KEY=sk-ant-...
# Vision model (default is the most capable; sonnet is cheaper for high volume)
# SCREEN_LEADS_MODEL=claude-opus-4-8
# Capture tuning
# SCREEN_LEADS_START_DELAY=5 # grace period to focus the browser (0 = off)
# SCREEN_LEADS_SCROLL_STEPS=6
# Auto-advance through paginated results
# SCREEN_LEADS_AUTO_NEXT=true # click a "Next" control after each capture
# SCREEN_LEADS_NEXT_LOAD_PAUSE=2.5 # seconds to wait for the next page to load
# SCREEN_LEADS_MAX_AUTO_NEXT=25 # safety cap on auto-advances per run
# SCREEN_LEADS_SCROLL_AMOUNT=800
# SCREEN_LEADS_SCROLL_PAUSE=0.8
# SCREEN_LEADS_WATCH_INTERVAL=2.0
# "stop" (default) ends the run when the front tab is not a LinkedIn profile;
# "wait" keeps polling instead.
# SCREEN_LEADS_ON_INVALID_PAGE=stop
# Server
# SCREEN_LEADS_HOST=127.0.0.1
# SCREEN_LEADS_PORT=8000