Reddit Post Comments avatar
Reddit Post Comments

Pricing

$10.00/month + usage

Go to Apify Store
Reddit Post Comments

Reddit Post Comments

This tool scrapes comments from a specific Reddit post based on user-defined parameters. It retrieves detailed information such as the author's name, comment content, score, and more.

Pricing

$10.00/month + usage

Rating

0.0

(0)

Developer

shareze

shareze

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Share

Reddit Post Comments Scraper

This tool is designed to scrape comments from a specific Reddit post. It retrieves detailed information about each comment, such as the author, content, score, and more.

How to Use

1. Input Configuration

The tool accepts the following input parameters in JSON format:

  • post_url (required):
    The URL of the Reddit post to scrape comments from (e.g., https://www.reddit.com/r/RedditGames/comments/1pnhqwl/rate_my_level/).

    • Type: String
  • size (required):
    The number of comments to retrieve.

    • Type: Integer
    • Default: 10
    • Minimum: 1

Example Input

{
"post_url": "https://www.reddit.com/r/RedditGames/comments/1pnhqwl/rate_my_level/",
"size": 10
}

2. Output Data

The tool returns an array of objects containing detailed information about the comments. Each object includes the following fields:

  • author_name: The name of the comment's author.
  • author_url: The URL of the author's profile.
  • author_icon: The URL of the author's profile icon.
  • author_flair: The flair of the author (if available).
  • comment_id: The unique ID of the comment.
  • comment_parent_id: The ID of the parent comment (if applicable).
  • comment_url: The URL of the comment.
  • comment_score: The score of the comment.
  • comment_type: The type of the comment (e.g., text).
  • comment_created_timestamp: The timestamp when the comment was created.
  • comment_content: The text content of the comment.
  • comment_img: The URL of any image included in the comment (if applicable).

Example Output

[
{
"author_name": "example_user",
"author_url": "/user/example_user",
"author_icon": "https://example.com/icon.png",
"author_flair": "Moderator",
"comment_id": "abc123",
"comment_parent_id": "def456",
"comment_url": "https://www.reddit.com/r/RedditGames/comments/1pnhqwl/rate_my_level/abc123",
"comment_score": 100,
"comment_type": "text",
"comment_created_timestamp": "2023-10-01T12:00:00",
"comment_content": "This is an example comment.",
"comment_img": null
}
]

3. Running the Tool

  1. Deploy the tool on the Apify platform.
  2. Provide the input parameters in the tool's input configuration.
  3. Run the tool to scrape comments from the specified Reddit post.
  4. Retrieve the output dataset containing the comment details.

Notes

  • Ensure the post_url parameter is in the correct format (e.g., https://www.reddit.com/r/community_name/comments/post_id/).
  • The tool uses Reddit's public interface and may be subject to rate limits or restrictions.
  • The size parameter determines the maximum number of comments to retrieve.