Linux command
bdfr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Download posts from a subreddit
bdfr download [./output] --subreddit [Python] -L [10]
Download a user's submitted posts
bdfr download [./output] --user [username] --submitted -L [100]
Download your saved posts
bdfr download [./output] --user me --saved --authenticate -L [25]
Archive submission data
bdfr archive [./output] --user [username] --submitted --all-comments
Clone posts and data
bdfr clone [./output] --subreddit [Python] -L [10]
Download from multiple subreddits
bdfr download [./output] --subreddit "[Python, programming, linux]" -L [10]
Search and download
bdfr download [./output] --subreddit [Python] --search "[machine learning]" -L [20]
说明
bdfr (Bulk Downloader for Reddit) is a tool to download submissions, media, and data from Reddit. It can archive posts for research, backup saved content, or download media from subreddits. The tool has three modes: download (downloads linked media like images and videos), archive (saves submission metadata, text, and comments in JSON/YAML/XML), and clone (performs both operations efficiently).
参数
- --subreddit _name_
- Target subreddit(s), comma-separated for multiple
- --user _name_
- Target Reddit username; use "me" for authenticated user
- -L, --limit _n_
- Maximum number of submissions to process
- --submitted
- Download user's submitted posts
- --saved
- Download user's saved posts (requires --authenticate)
- --upvoted
- Download user's upvoted posts (requires --authenticate)
- --authenticate
- Use OAuth2 authentication for private content
- --search _query_
- Search query to filter submissions
- -S, --sort _type_
- Sort order: hot, top, new, controversial, rising, relevance
- -t, --time _period_
- Time filter: all, hour, day, week, month, year
- --all-comments
- Archive all comments on submissions
- --file-scheme _format_
- Custom filename format (e.g., '{POSTID}')
- -v, --verbose
- Increase output verbosity
FAQ
What is the bdfr command used for?
bdfr (Bulk Downloader for Reddit) is a tool to download submissions, media, and data from Reddit. It can archive posts for research, backup saved content, or download media from subreddits. The tool has three modes: download (downloads linked media like images and videos), archive (saves submission metadata, text, and comments in JSON/YAML/XML), and clone (performs both operations efficiently).
How do I run a basic bdfr example?
Run `bdfr download [./output] --subreddit [Python] -L [10]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --subreddit _name_ do in bdfr?
Target subreddit(s), comma-separated for multiple