How malloydelacroix/downloaderforreddit works
Downloader For Reddit is a desktop application for retrieving Reddit users’ and subreddits’ posts, linked media, self text, and comments. Users configure targets and download options, then the application extracts and filters content, downloads files, and records extracted data in SQLite; users can inspect, filter, and export that data. The graph covers the documented scheduling, settings, and output capabilities as well. Some of those subsystem links are dashed because their implementation was not sampled.
Main entry points: downloader_for_reddit_gui.py Main window · database_dialog.py Database browser · submission_handler.py Submission handler · base_extractor.py Site extractors
Components 21
Desktop interface
- Application entry
main.py - Main window
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Database browser
DownloaderForReddit/gui/database_views/database_dialog.py - Database statistics
DownloaderForReddit/gui/database_views/database_statistics_dialog.py
Reddit collection
- Reddit authentication
DownloaderForReddit/core/user_auth.py - Download runner
DownloaderForReddit/core/download_runner.py - Submission handler
DownloaderForReddit/core/submission_handler.py - Comment handler
DownloaderForReddit/core/comment_handler.py - Content filters
DownloaderForReddit/core/content_filter.py
Extraction and downloads
- Site extractors
DownloaderForReddit/extractors/base_extractor.py - File downloader
DownloaderForReddit/core/download/downloader.py - Video merger
DownloaderForReddit/utils/video_merger.py
Data and preferences
- Reddit data models
DownloaderForReddit/database/models.py - SQLite database
DownloaderForReddit/database/database_handler.py - Database operations
DownloaderForReddit/database/model_manager.py - Database filters
DownloaderForReddit/database/filters.py - Settings manager
DownloaderForReddit/persistence/settings_manager.py
Scheduling and output
- Download scheduler
DownloaderForReddit/scheduling/scheduler.py - Data import and export
DownloaderForReddit/utils/exporters - Message queue
DownloaderForReddit/messaging/message.py
Other components
- User
Connections 28
- User → Main window: configures and starts
- Application entry → Main window: starts
main.py - Application entry → Settings manager: initializes
- Main window → Download runner: starts downloads
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Main window → Reddit authentication: uses authentication
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Main window → Database browser: opens
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Main window → Database statistics: opens
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Main window → Settings manager: configures
- Main window → Download scheduler: schedules downloads
- Download runner → Submission handler: processes submissions
- Submission handler → Comment handler: handles comments
DownloaderForReddit/core/submission_handler.py - Submission handler → Site extractors: selects and invokes
DownloaderForReddit/core/submission_handler.py - Submission handler → Reddit data models: uses post data
DownloaderForReddit/core/submission_handler.py - Submission handler → Message queue: reports errors
DownloaderForReddit/core/submission_handler.py - Site extractors → Content filters: filters extracted content
DownloaderForReddit/extractors/base_extractor.py - Site extractors → Reddit data models: creates content records
DownloaderForReddit/extractors/base_extractor.py - Site extractors → File downloader: queues content
- File downloader → Video merger: merges video files
- Reddit data models → SQLite database: persists records
DownloaderForReddit/database/models.py - Database browser → Reddit data models: queries and displays
DownloaderForReddit/gui/database_views/database_dialog.py - Database browser → Database filters: applies filters
DownloaderForReddit/gui/database_views/database_dialog.py - Database browser → Database operations: delegates data operations
DownloaderForReddit/gui/database_views/database_dialog.py - Database statistics → Reddit data models: summarizes records
DownloaderForReddit/gui/database_views/database_statistics_dialog.py - Database browser → Data import and export: exports selected data
- Main window → Message queue: displays output
DownloaderForReddit/gui/downloader_for_reddit_gui.py - Settings manager → Site extractors: configures extractors
DownloaderForReddit/persistence/settings_manager.py - Download scheduler → Download runner: triggers runs
- User → Database browser: reviews extracted data