9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
49 lines
1.6 KiB
Markdown
49 lines
1.6 KiB
Markdown
# YouTube
|
|
|
|
**Mode**: 🔐 Browser · **Domain**: `youtube.com`
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli youtube search` | Search videos |
|
|
| `opencli youtube video` | Get video metadata |
|
|
| `opencli youtube transcript` | Get video transcript/subtitles |
|
|
| `opencli youtube comments` | Get video comments |
|
|
| `opencli youtube channel` | Get channel info and videos |
|
|
| `opencli youtube playlist` | Get playlist video list |
|
|
| `opencli youtube feed` | Homepage recommended videos |
|
|
| `opencli youtube history` | Watch history |
|
|
| `opencli youtube watch-later` | Watch Later queue |
|
|
| `opencli youtube subscriptions` | List subscribed channels |
|
|
| `opencli youtube like` | Like a video |
|
|
| `opencli youtube unlike` | Remove like from a video |
|
|
| `opencli youtube subscribe` | Subscribe to a channel |
|
|
| `opencli youtube unsubscribe` | Unsubscribe from a channel |
|
|
|
|
## Usage Examples
|
|
|
|
```bash
|
|
# Read commands
|
|
opencli youtube feed --limit 10
|
|
opencli youtube history --limit 20
|
|
opencli youtube watch-later --limit 50
|
|
opencli youtube subscriptions --limit 30
|
|
|
|
# Search and video info
|
|
opencli youtube search "rust programming" --limit 5
|
|
opencli youtube video "https://www.youtube.com/watch?v=xxx"
|
|
opencli youtube transcript "https://www.youtube.com/watch?v=xxx"
|
|
|
|
# Write commands (requires login)
|
|
opencli youtube like "https://www.youtube.com/watch?v=xxx"
|
|
opencli youtube unlike "videoId"
|
|
opencli youtube subscribe "@ChannelHandle"
|
|
opencli youtube unsubscribe "UCxxxxxxxxxxxxxx"
|
|
```
|
|
|
|
## Prerequisites
|
|
|
|
- Chrome running and **logged into** youtube.com
|
|
- [Browser Bridge extension](/guide/browser-bridge) installed
|