查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"title": "Reddit Comment Scraper Input",
"required": [
"postUrls"
],
"properties": {
"onlyOP": {
"type": "boolean",
"title": "Only original poster's comments",
"default": false,
"prefill": false,
"description": "默认 false。开启后仅保留原帖作者撰写的评论。这是作者筛选,不是只取顶层评论或指定回复深度。"
},
"authors": {
"type": "array",
"title": "Filter by comment author(s)",
"editor": "stringList",
"example": [
"spez"
],
"description": "可选 Reddit 用户名列表,匹配不区分大小写。空列表关闭此包含筛选;作者排除条件随后生效,同时出现在两表中的用户名会被排除。"
},
"keywords": {
"type": "array",
"title": "Filter by keyword(s) in comment body",
"editor": "stringList",
"example": [
"thanks",
"great point"
],
"description": "可选词语或短语,通过不区分大小写的子串匹配,保留正文包含任意一项的评论。不是语义或整词匹配,排除条件优先;空列表关闭此筛选。"
},
"maxDepth": {
"type": "integer",
"title": "Maximum reply depth",
"example": 2,
"maximum": 100,
"minimum": 0,
"description": "可选最深保留层级,范围 0–100:0 仅顶层评论,1 加上直接回复,2 再加回复的回复。省略时不设此深度上限,其他限制仍生效。"
},
"minDepth": {
"type": "integer",
"title": "Minimum reply depth",
"example": 1,
"maximum": 100,
"minimum": 0,
"description": "可选最浅保留层级,范围 0–100:0 包含顶层评论,1 保留回复及更深层,2 保留回复的回复及更深层。省略时不设此深度下限。"
},
"postUrls": {
"type": "array",
"title": "Reddit Post URLs",
"editor": "stringList",
"example": [
"https://www.reddit.com/r/programming/comments/1vqukkf/nothing_like_a_monday_morning_github_outage/",
"https://www.reddit.com/comments/1tlh5aj"
],
"prefill": [
"https://www.reddit.com/r/programming/comments/1vqukkf/"
],
"minItems": 1,
"description": "必填非空列表。支持 Reddit 完整或简短帖子链接、特定评论链接、分享链接、redd.it 短链、old.reddit.com 链接,以及可带 t3_ 前缀的帖子 ID。无效项可能被跳过;预填目标是示例。"
},
"minAwards": {
"type": "integer",
"title": "Minimum total awards received",
"example": 1,
"maximum": 1000000,
"minimum": 0,
"description": "可选奖励总数下限,包含边界值,范围 0–1,000,000;省略时不设此条件。奖励数是来源记录,不评定内容质量或真实性。"
},
"commentSort": {
"enum": [
"confidence",
"top",
"new",
"controversial",
"old",
"qa"
],
"type": "string",
"title": "Sort comments by",
"default": "confidence",
"prefill": "confidence",
"enumTitles": [
"Best (Confidence)",
"Top",
"New",
"Controversial",
"Old",
"Q&A"
],
"description": "默认 confidence(最佳)。另有 top(高分)、new(新)、controversial(争议)、old(旧)和 qa(问答)。请求来源排序,不保证全局最新、最热门或最负面的观点。"
},
"includePost": {
"type": "boolean",
"title": "Include the parent post record",
"default": false,
"prefill": false,
"description": "默认 false。开启后,每个输入讨论先返回独立原帖记录,不计入评论上限。可用标题、正文、汇总计数或媒体地址属于帖子背景,不是额外评论或已交付文件。"
},
"maxComments": {
"type": "integer",
"title": "Maximum comments per post",
"default": 100,
"example": 100,
"maximum": 100000,
"minimum": 1,
"prefill": 30,
"description": "每个帖子的请求上限,包含嵌套回复,范围 1–100,000,默认 100。预填 30 是示例,不是默认值。筛选或访问限制可能使记录更少;这不是费用上限或完整讨论保证。"
},
"postedAfter": {
"type": "string",
"title": "Comments created on or after (YYYY-MM-DD)",
"editor": "datepicker",
"example": "2025-01-01",
"description": "可选 YYYY-MM-DD 日期,按 UTC 保留该日及之后创建的评论,包含边界。筛选的是原始发布时间,不是编辑或获取时间;所示示例不是默认值。"
},
"postedBefore": {
"type": "string",
"title": "Comments created on or before (YYYY-MM-DD)",
"editor": "datepicker",
"example": "2025-12-31",
"description": "可选 YYYY-MM-DD 日期,按 UTC 保留该日结束及之前创建的评论,包含边界。作用于原始发布时间,不是编辑或获取时间。"
},
"commentContext": {
"type": "integer",
"title": "Ancestor context depth (mode = focusOnTargetComment)",
"default": 3,
"maximum": 8,
"minimum": 0,
"prefill": 3,
"description": "目标评论之上的上级评论层数,范围 0–8,默认 3。仅在开启 focusOnTargetComment 且提供特定评论链接时生效,其他情况下忽略。请求上级评论,不是下级回复。"
},
"excludeAuthors": {
"type": "array",
"title": "Exclude comment author(s)",
"editor": "stringList",
"example": [
"AutoModerator"
],
"description": "可选 Reddit 用户名排除列表,不区分大小写。在 authors 之后生效,两表重叠的用户名被排除。空列表关闭此排除条件,其他筛选和访问限制仍适用。"
},
"excludeKeywords": {
"type": "array",
"title": "Exclude keyword(s) in comment body",
"editor": "stringList",
"example": [
"I am a bot",
"check out my"
],
"description": "可选正文子串排除列表,不区分大小写。包含任意所列词句的评论被丢弃,即使也匹配 keywords。空列表关闭此排除条件。"
},
"excludeStickied": {
"type": "boolean",
"title": "Exclude stickied comments",
"default": false,
"prefill": false,
"description": "默认 false。开启后丢弃版主置顶的评论,例如置顶通知;不等于识别或排除版主撰写的全部评论。"
},
"maxCommentScore": {
"type": "integer",
"title": "Maximum comment score",
"example": 1000,
"maximum": 1000000,
"minimum": -1000000,
"description": "可选净得分上限,包含边界值,范围 −1,000,000 至 1,000,000。净得分为赞成票减反对票,不是原始赞成票数。省略时不设此条件;隐藏或缺失得分仍分别处理。"
},
"minCommentScore": {
"type": "integer",
"title": "Minimum comment score",
"example": 1,
"maximum": 1000000,
"minimum": -1000000,
"description": "可选净得分下限,包含边界值,范围 −1,000,000 至 1,000,000。零和负数是有效值,不是缺失。省略时不设此条件。"
},
"excludeCollapsed": {
"type": "boolean",
"title": "Exclude collapsed comments",
"default": false,
"prefill": false,
"description": "默认 false。开启后丢弃 Reddit 默认折叠的评论。该状态不独立证明折叠原因,也不证明正文不真实。"
},
"maxCommentLength": {
"type": "integer",
"title": "Maximum comment length (characters)",
"example": 2000,
"maximum": 10000,
"minimum": 0,
"description": "可选正文字符数上限,包含边界值,范围 0–10,000。按长度筛选评论,不截断正文。省略时不设此条件。"
},
"minCommentLength": {
"type": "integer",
"title": "Minimum comment length (characters)",
"example": 20,
"maximum": 10000,
"minimum": 0,
"description": "可选正文字符数下限,包含边界值,范围 0–10,000。按长度筛选,不分析含义或情绪。省略时关闭此条件;填写 0 不等于省略。"
},
"controversialOnly": {
"type": "boolean",
"title": "Only controversial comments",
"default": false,
"prefill": false,
"description": "默认 false。开启后仅保留 Reddit 标记为争议的评论,标记与赞反票接近相关,不等于负面情绪、错误信息或真假判断。"
},
"distinguishedFilter": {
"enum": [
"any",
"moderator",
"admin",
"none"
],
"type": "string",
"title": "Filter by distinguished status",
"editor": "select",
"default": "any",
"prefill": "any",
"enumTitles": [
"Any (default)",
"Moderator only",
"Admin only",
"Regular users only (exclude mod/admin)"
],
"description": "默认 any 不限制此标记。moderator(版主)或 admin(平台管理员)筛选带相应官方身份标记发布的评论;none 选择无此标记的评论。没有标记不证明作者本人不是版主或平台管理员。"
},
"focusOnTargetComment": {
"type": "boolean",
"title": "Focus on the specific comment in the URL",
"default": false,
"prefill": false,
"description": "默认 false。针对特定评论链接,开启后请求目标及其上级评论链,不获取讨论中的其他评论或下级回复。对普通帖子链接无效,也不保证取得不可访问的内容。"
},
"excludeDeletedRemoved": {
"type": "boolean",
"title": "Exclude deleted/removed comments",
"default": false,
"prefill": false,
"description": "默认 false。开启后,正文或作者显示删除、移除标记的评论被丢弃,因此作者标记也可能排除仍保留的正文。关闭时可能保留标记,但不能恢复已删除原文。"
}
},
"schemaVersion": 1
}
},
"additionalProperties": false
}