Overview
Guide for accessing Twitch streams and retrieving chat messages via browser automation. Chat messages are accessible without login.
Access
- URL: https://www.twitch.tv
- Login: Not required for viewing streams or reading chat
Search for Streams
- Click the search input field labeled "Search Input"
- Type search query (e.g., "AI VTuber")
- Submit to navigate to search results
- Results show:
- Live channels with viewer counts
- Channel names with tags (e.g., "AI", "VTuber", "English", "Japanese")
- Past videos section
View a Stream
- Click on a channel name or stream title from search results
- Stream page elements:
- Video player (center)
- Channel info below video (title, category, tags, follower count)
- Chat panel (right side)
Stream Page Controls
- button "Pause (space/k)" - Pause/play video
- button "Mute (m)" - Toggle audio
- button "Settings" - Video quality options
- button "Theatre Mode (alt+t)" - Expand video
- button "Fullscreen (f)" - Full screen mode
- button "Collapse Chat" - Hide chat panel
Retrieve Chat Messages
Chat messages are in the "Stream Chat" region. Structure:
complementary "Stream Chat"
└── region "Stream Chat"
└── generic "Chat messages"
└── log
└── generic "{username}: {message}"
Message Format
Each message contains:
- Username button (clickable)
- Subscriber badges (if any): "X-Month Subscriber badge"
- Message text
- Emotes as images
- Reply button
Example Message Structure
generic "username123: hello everyone"
├── button "6-Month Subscriber badge"
├── button "username123"
├── text ":"
└── generic: hello everyone
Key Differences from YouTube
| Feature | Twitch | YouTube Live |
|---|---|---|
| Login for chat | Not required | May be required |
| Chat in snapshot | Full messages visible | Limited visibility |
| Emotes | Images with alt text | Text-based |
| Badges | Subscriber/gift badges | Member badges |
Common Tags for AI Streams
- "AI", "AIVtuber", "AIChat"
- "VTuber", "Vtuber"
- "English", "Japanese"
- "Always On" (24/7 streams)
Troubleshooting
Chat not loading
- Wait for page to fully load
- Take a fresh snapshot after a few seconds
- Check if stream is actually live
Notification dialogs
- Close button may appear for promotions
- Look for button "Close" or button "Show me" to dismiss