Learn about the Reddit Scraper Tool used by the Newsletter AI Agent
BaseTool
that interacts with an Apify Reddit scraper actor. Here’s the implementation:
Parameter | Type | Description | Default |
---|---|---|---|
searches | List[str] | Search queries for Reddit topics | Required |
startUrls | List[str] | Direct URLs to Reddit pages to scrape | None |
skipComments | bool | Skip scraping comments when processing posts | False |
skipUserPosts | bool | Skip scraping user posts when processing user activity | False |
skipCommunity | bool | Skip scraping community info but still get community posts | False |
searchPosts | bool | Search for posts with the provided search | True |
searchComments | bool | Search for comments with the provided search | False |
searchCommunities | bool | Search for communities with the provided search | False |
searchUsers | bool | Search for users with the provided search | False |
sort | str | How to sort the results (e.g., “new”, “top”, “hot”) | “new” |
time | str | Time filter for results | None |
includeNSFW | bool | Include NSFW content in results | True |
maxPostCount | int | Maximum number of posts to retrieve | 20 |
maxComments | int | Maximum number of comments to retrieve per post | 20 |
maxCommunitiesCount | int | Maximum number of communities to retrieve | 2 |
maxUserCount | int | Maximum number of users to retrieve | 2 |
title
: The title of the post (for posts only)text
: The text content of the post or commenturl
: The URL of the post or commentauthor
: The username of the authorscore
: The score (upvotes - downvotes) of the post or commentcreated
: The creation date of the post or comment