查看原始 JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"type": "object",
"title": "Reddit Scraper Input Schema",
"required": [],
"properties": {
"sort": {
"enum": [
"relevance",
"hot",
"new",
"top",
"comments",
"controversial",
"rising"
],
"type": "string",
"title": "Sort By",
"editor": "select",
"default": "relevance",
"description": "可选,默认 relevance(相关性)。关键词搜索支持 relevance、new(新帖)、top(高排名)、hot(热门)、comments(评论排序);社区内容列表支持 hot、new、top、controversial(争议)、rising(上升)。社区列表使用 relevance 时回退为 hot。relevance 和 comments 仅用于搜索,不应假设关键词搜索支持 controversial 或 rising,也不保证完整或精确排名。"
},
"time": {
"enum": [
"all",
"day",
"hour",
"month",
"week",
"year"
],
"type": "string",
"title": "Time Filter",
"editor": "select",
"default": "all",
"description": "可选,默认 all(不限时间)。选项为 all、day(日范围)、hour(小时范围)、month(月范围)、week(周范围)或 year(年范围),作用于关键词搜索和社区列表中的帖子创建时间。all 不限制时间,不代表无限数量。它不筛选评论发布时间或账号年龄,未明确具体时区和日历边界。"
},
"maxItems": {
"type": "integer",
"title": "Max Items",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "可选整数,范围 1–100,默认 25。按每个查询、社区或链接任务请求结果上限,多项输入可能使总记录数更高。这不是整次请求或费用上限,不保证固定条数、去重,或为每个嵌套评论及所选记录类型分别提供独立上限。"
},
"searches": {
"type": "array",
"items": {
"type": "string"
},
"title": "Search Queries",
"editor": "stringList",
"prefill": [
"apify"
],
"description": "可选关键词或短语列表。每条查询独立运行,按启用的搜索类型请求记录;没有社区范围时搜索 Reddit。社区链接与查询合用可限定该社区,忽略链接时则不保留此范围。引号按来源说明请求精确短语匹配;预填 apify 是示例,不是默认值。"
},
"startUrls": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"title": "URL",
"pattern": "^(https?:\\/\\/)?(www\\.)?reddit\\.com\\/.+$",
"description": "每个已提供链接条目内的必填字符串,可指向 Reddit 社区、帖子或用户页,例如 https://www.reddit.com/r/javascript/。Reddit 链接模式检查形式,不证明存在、可访问或完整覆盖。ignorestartUrls 为 true 时忽略该链接。"
}
}
},
"title": "Start URLs",
"editor": "requestListSources",
"prefill": [
{
"url": "https://www.reddit.com/r/javascript/"
}
],
"description": "可选对象列表,每项包含 url。社区链接请求内容列表,帖子链接请求该帖及可选评论,用户链接请求账号资料及可选近期帖子。社区链接可限定已提供的查询;即使同时有查询,帖子和用户链接仍直接获取。ignorestartUrls 为 true 时忽略全部链接。预填 JavaScript 社区是示例,不是默认值。"
},
"includeNSFW": {
"type": "boolean",
"title": "Include NSFW",
"default": false,
"description": "可选,默认 false。true 包含平台标为 NSFW 的可用内容,不绕过访问限制,也不证明安全性、年龄或完整覆盖此类内容。"
},
"searchPosts": {
"type": "boolean",
"title": "Search Posts",
"default": true,
"description": "可选,默认 true。请求标题或正文匹配查询的帖子及其可用文字和来源计数。仅需其他搜索类型时可关闭;关闭不会取消评论搜索内部查找匹配帖子的步骤,也不会自动取得每个帖子的评论正文。"
},
"searchUsers": {
"type": "boolean",
"title": "Search Users",
"default": false,
"description": "可选,默认 false。请求匹配查询的 Reddit 账号,以及可用账号资料、karma 或账号年龄背景。这是搜索类型选择,不独立验证身份,也不保证完整账号历史。"
},
"skipComments": {
"type": "boolean",
"title": "Skip Comments (for direct post URLs)",
"default": false,
"description": "可选,默认 false。对直接帖子链接,false 请求可用评论,可能包含回复;true 获取帖子而不采集这些评论,不保证完整讨论。它不会关闭 fetchPostComments,也不是评论搜索的全局开关。"
},
"skipCommunity": {
"type": "boolean",
"title": "Skip Community Info",
"default": true,
"description": "可选,默认 true。采集社区内容列表时跳过额外社区资料请求;false 可能附带可用成员数、描述或链接背景。它不关闭 searchCommunities,也不取消社区帖子采集。"
},
"skipUserPosts": {
"type": "boolean",
"title": "Skip User Posts",
"default": false,
"description": "可选,默认 false。对直接用户主页链接,false 另请求可用近期帖子;true 仅请求账号资料,不附带这些帖子。不保证完整历史,也不关闭 searchUsers。"
},
"searchComments": {
"type": "boolean",
"title": "Search Comments",
"default": false,
"description": "可选,默认 false。先寻找匹配查询的帖子,再从这些帖子中过滤匹配查询的评论,因此可能漏掉其他帖子的评论,不是完整全站评论检索。比帖子搜索使用更多 API 请求,与 fetchPostComments 分开。"
},
"ignorestartUrls": {
"type": "boolean",
"title": "Ignore Start URLs",
"default": false,
"description": "可选,默认 false。true 忽略全部 startUrls,只按查询采集,同时移除社区链接提供的搜索范围;该模式需提供 searches。false 保留支持的链接与查询采集方式。"
},
"fetchPostComments": {
"type": "boolean",
"title": "Fetch Comments for Each Post",
"default": false,
"description": "可选,默认 false。true 为社区列表或关键词搜索返回的每个帖子另请求可用顶层评论,每帖增加一次 API 请求;不按关键词过滤这些评论,也不保证完整回复树。它与直接链接的 skipComments 和匹配评论搜索分开。"
},
"searchCommunities": {
"type": "boolean",
"title": "Search Communities",
"default": false,
"description": "可选,默认 false。请求名称或描述匹配查询的社区,以及可用成员数量、描述和链接。它与 skipCommunity 控制的额外社区资料分开,不保证取得所有匹配社区。"
}
},
"description": "可选关键词、链接、记录类型、顺序、帖子时间范围及评论和账号设置。要进行有用采集,需提供可用查询或支持的 Reddit 链接。所选模式和链接类型决定可用记录。",
"schemaVersion": 1,
"additionalProperties": false
}
},
"additionalProperties": false
}