Reddit Comment and Post Extractor

Extract Reddit comments and posts as JSON with configurable options

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
anas k
日安装量
0
总安装量
12
评分
0 0 0
版本
1
创建于
2025-01-25
更新于
2025-01-25
大小
16.7 KB
许可证
MIT
适用于

Reddit Comment and Post Extractor

A Tampermonkey userscript that extracts Reddit comments and posts into a structured JSON format with configurable filters.

Features

  • Extract both posts and comments
  • Configurable filters:
    • Minimum votes per comment
    • Maximum comment nesting depth
  • Selective data inclusion
  • Multiple output options
  • Compatible with both old and new Reddit interfaces

Installation

  1. Install a userscript manager
  2. Click here to install the script

Usage

  1. Navigate to any Reddit post
  2. Click Tampermonkey icon > "Extract Reddit Comments"
  3. Configure settings and extract data

JSON Structure Example

{
  "metadata": {
    "extractionDate": "2023-07-20T12:34:56.789Z",
    "totalComments": 42,
    "postTitle": "Sample Post Title",
    "subreddit": "askscience",
    "criteria": {
      "minVotes": 5,
      "maxDepth": 4
    }
  },
  "post": {
    "content": "Full post text...",
    "author": "ScienceFan123"
  },
  "comments": [
    {
      "content": "Top-level comment...",
      "depth": 0,
      "votes": 123,
      "username": "User123",
      "date": "2023-07-19T15:30:00",
      "profileUrl": "/user/User123",
      "permalink": "/r/askscience/comments/12345/..."
    }
  ]
}

Configuration Options

Setting Description Default
Minimum Votes Comments vote threshold 1
Maximum Depth Comment nesting limit 4

License

MIT License - see LICENSE


Unofficial tool - Follow Reddit's API Rules