How egbertbouman/youtube-comment-downloader works
This small Python package downloads YouTube comments without the YouTube API, either through its CLI or as a library. The CLI parses video and output options, requests comments, then writes JSONL, JSON, CSV, or semicolon-delimited CSV. The downloader fetches YouTube pages, handles consent and continuation requests, and yields normalized comment records. The README documents these formats and library use; no separate storage or service layer is present. Edges reflect the shown CLI calls and downloader HTTP requests.
Main entry points: downloader.py Comment downloader · __init__.py CLI workflow · __main__.py Module entry
Components 9
Command line
- Module entry
youtube_comment_downloader/__main__.py - CLI workflow
youtube_comment_downloader/__init__.py
Comment download
- Comment downloader
youtube_comment_downloader/downloader.py - Continuation requests
youtube_comment_downloader/downloader.py - Response traversal
youtube_comment_downloader/downloader.py
Output formatting
- Comment writer
youtube_comment_downloader/__init__.py
Other components
- CLI user
- YouTube
- Output file
Connections 8
- CLI user → Module entry: runs CLI
README.md - Module entry → CLI workflow: calls main
youtube_comment_downloader/__main__.py - CLI workflow → Comment downloader: requests comments
youtube_comment_downloader/__init__.py - Comment downloader → Continuation requests: requests continuations
youtube_comment_downloader/downloader.py - Comment downloader → Response traversal: traverses responses
youtube_comment_downloader/downloader.py - Comment downloader → YouTube: fetches pages and comments
youtube_comment_downloader/downloader.py - CLI workflow → Comment writer: writes comments
youtube_comment_downloader/__init__.py - Comment writer → Output file: writes formats
youtube_comment_downloader/__init__.py