查看原始 JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"type": "object",
"title": "Input schema for Reddit scraper Lite",
"required": [],
"properties": {
"sort": {
"enum": [
"",
"relevance",
"hot",
"top",
"new",
"rising",
"comments"
],
"type": "string",
"title": "Sort search",
"editor": "select",
"default": "new",
"prefill": "new",
"enumTitles": [
"None",
"Relevance",
"Hot",
"Top",
"New",
"Rising",
"Comments"
],
"description": "关键词搜索排序,默认 new(最新)。可选空值(不指定)、relevance(相关性)、hot(热门)、top(高分)、new(最新)、rising(热度上升)或 comments(评论较多)。链接采集忽略此项;帖子日期筛选会将关键词搜索排序切换为 new。"
},
"time": {
"enum": [
"all",
"hour",
"day",
"week",
"month",
"year"
],
"type": "string",
"title": "Filter by date (Posts only)",
"editor": "select",
"enumTitles": [
"All time",
"Last hour",
"Last day",
"Last week",
"Last month",
"Last year"
],
"description": "可选,仅筛选关键词搜索中的帖子:all(不限时间)、hour(最近一小时)、day(最近一天)、week(最近一周)、month(最近一月)或 year(最近一年)。不筛选其他类型,提供起始链接时忽略此项;不限时间不保证完整历史。"
},
"proxy": {
"type": "object",
"title": "Proxy configuration",
"editor": "proxy",
"default": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
},
"prefill": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
},
"description": "此 Lite 服务忽略用户提供的代理设置;使用本 Tool 无需填写代理配置。",
"sectionCaption": "Proxy Settings",
"sectionDescription": "All settings bellow are ignored on the Lite version. The Lite version of the actor does not require proxy settings and they will be ignored."
},
"maxItems": {
"type": "integer",
"title": "Maximum number of items to be saved",
"editor": "number",
"default": 10,
"prefill": 10,
"description": "整次请求保存的各类记录合计上限,默认 10。帖子、评论、用户和社区记录共同占用此额度,社区类别记录也可能分别计数。它不是每页帖子上限,也不保证返回同样数量的帖子。",
"sectionCaption": "Limits"
},
"searches": {
"type": "array",
"title": "Search Term",
"editor": "stringList",
"description": "可选关键词查询列表,例如 [\"pasta\"]。使用关键词搜索前应清空起始链接,或明确选择忽略链接;各搜索开关分别决定结果类型。",
"sectionCaption": "Search",
"sectionDescription": "This fields will be used on the search and will be ignored when using startUrls"
},
"debugMode": {
"type": "boolean",
"title": "Debug Mode",
"editor": "checkbox",
"default": false,
"description": "设为 true 时请求详细诊断日志,默认 false。不改变返回内容的含义或准确性。"
},
"startUrls": {
"type": "array",
"title": "Start URLs",
"editor": "requestListSources",
"prefill": [
{
"url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
}
],
"description": "以带 url 值的请求条目提供完整 Reddit 链接,可按可访问情况获取选定帖子、社区、用户或列表页面。Reddit 搜索结果链接只采集帖子。ignoreStartUrls 不为 true 时,链接优先,全部搜索控制项会被忽略。",
"patternValue": "(^$|reddit\\.com\\/.+)",
"placeholderValue": "URL"
},
"includeNSFW": {
"type": "boolean",
"title": "Include NSFW content",
"editor": "checkbox",
"default": true,
"description": "默认包含标记为 NSFW 的搜索内容,设为 false 可请求排除。此项在起始链接采集时忽略,也不提供对受限内容的访问能力。",
"sectionCaption": "Filters",
"sectionDescription": "Choose the types of results you want to include"
},
"maxComments": {
"type": "integer",
"title": "Limit of comments scraped inside a single page",
"editor": "number",
"default": 10,
"prefill": 10,
"description": "每个评论页面的评论数量上限,默认 10。设为 0 会关闭评论采集,不代表无限量;全局记录上限可能更早结束采集。"
},
"searchMedia": {
"type": "boolean",
"title": "Search for media",
"editor": "checkbox",
"default": false,
"description": "开启关键词媒体搜索,默认 false。与详细帖子提取独立,不下载媒体文件;提供起始链接时忽略此项。"
},
"searchPosts": {
"type": "boolean",
"title": "Search for posts",
"editor": "checkbox",
"default": true,
"description": "开启关键词帖子搜索,默认 true。可与其他类型的搜索开关分别设置;若只需其他类型,应关闭此项。提供起始链接时忽略此项。"
},
"searchUsers": {
"type": "boolean",
"title": "Search for users",
"editor": "checkbox",
"default": false,
"description": "开启关键词公开用户搜索,默认 false。与帖子和社区搜索独立;提供起始链接时忽略此项。"
},
"maxPostCount": {
"type": "integer",
"title": "Limit of posts scraped inside a single page",
"editor": "number",
"default": 10,
"prefill": 10,
"description": "每个帖子页面、社区链接或用户链接的帖子数量上限,默认 10。与全局保存记录上限分别计算,不保证可获取同样数量的帖子。"
},
"maxUserCount": {
"type": "integer",
"title": "Limit of `Users`'s pages scraped",
"editor": "number",
"default": 2,
"prefill": 2,
"description": "处理的用户页面数量上限,默认 2。不是帖子数量、已核实人数或全局保存记录上限。"
},
"skipComments": {
"type": "boolean",
"title": "Skip comments",
"editor": "checkbox",
"default": false,
"description": "设为 true 时,在处理帖子时跳过评论提取,默认 false。不删除帖子正文,也不自动发起另一轮评论搜索。"
},
"postDateLimit": {
"type": "string",
"title": "Post date limit",
"editor": "datepicker",
"description": "可选,请求晚于指定日期发布的帖子。此项将关键词搜索排序切换为 new(最新);起始链接采集仍按链接所指定的顺序。日期边界和时区不作保证。"
},
"scrollTimeout": {
"type": "integer",
"title": "Page scroll timeout (seconds)",
"editor": "number",
"default": 40,
"prefill": 40,
"description": "滚动页面以加载更多内容的最长时间,单位为秒,默认 40。不是整次 Tool 请求的总时限,也不保证完整采集。"
},
"skipCommunity": {
"type": "boolean",
"title": "Skip community",
"editor": "checkbox",
"default": false,
"description": "设为 true 时跳过社区资料,默认 false。若未另行排除,仍可获取社区帖子。"
},
"skipUserPosts": {
"type": "boolean",
"title": "Skip user posts",
"editor": "checkbox",
"default": false,
"description": "设为 true 时,在处理用户活动时跳过用户帖子,默认 false。不代表同时排除全部公开用户资料或评论活动。"
},
"searchComments": {
"type": "boolean",
"title": "Search for comments",
"editor": "checkbox",
"default": false,
"description": "开启关键词评论搜索,默认 false。与选定帖子中的评论采集分别设置;提供起始链接时忽略此项。"
},
"ignoreStartUrls": {
"type": "boolean",
"title": "Ignore start URLs",
"editor": "checkbox",
"default": false,
"description": "设为 true 时忽略起始链接输入,默认 false。选择这条路线时仍需提供可用关键词及搜索设置;链接获取失败不会自动切换到搜索。"
},
"commentDateLimit": {
"type": "string",
"title": "Comment date limit",
"editor": "datepicker",
"description": "可选,请求帖子内晚于指定日期发布的评论,与帖子日期筛选分别设置。不保证精确边界是否包含或对应时区。"
},
"includeMediaLinks": {
"type": "boolean",
"title": "Include media links, up votes and comment count",
"editor": "checkbox",
"default": false,
"description": "设为 true 时请求更详细的帖子提取,可能获得来源投票数、投票比例、评论数和图片或视频链接。默认 false 使用较快的 RSS 数据,可能缺少这些信息;开启后可能影响处理性能。链接是引用,不是下载文件。"
},
"navigationTimeout": {
"type": "integer",
"title": "Navigation timeout (seconds)",
"editor": "number",
"default": 60,
"maximum": 60,
"minimum": 20,
"prefill": 60,
"description": "页面加载超时秒数,范围 20 至 60,默认 60。超时可能导致资料缺失,不能据此判断页面或内容不存在。"
},
"searchCommunities": {
"type": "boolean",
"title": "Search for communities",
"editor": "checkbox",
"default": false,
"description": "开启关键词社区搜索,默认 false。与其他类型搜索分别设置;提供起始链接时忽略此项。"
},
"maxCommunitiesCount": {
"type": "integer",
"title": "Limit of `Communities`'s pages scraped",
"editor": "number",
"default": 2,
"prefill": 2,
"description": "处理的社区页面数量上限,默认 2。不是成员人数,也不保证完整社区帖子;类别记录也可能占用全局记录上限。"
},
"searchCommunityName": {
"type": "string",
"title": "Community (optional)",
"editor": "textfield",
"description": "可选社区名称,例如 programming,用于将关键词搜索限定在该社区。填写名称而非链接;提供起始链接时忽略此项。"
}
},
"description": "本次请求的可选设置。需要提供可用的完整 Reddit 链接或关键词查询;两者都为空无法形成有效查询。下方可选择结果类型、数量上限和提取选项。",
"schemaVersion": 1
}
},
"additionalProperties": false
}