template bg

Reddit Posts and Comments Scraper

Reddit Posts and Comments Scraper is a BrowserAct Bot template for collecting structured records from public Reddit search results or subreddit listing pages.

Published by
Br
BrowserAct Team
August 21, 2026
Approx.Credits
54-102 Credits
Categories
BA
Reddit
Template ID
113862507814193575

Brief

Reddit Posts and Comments Scraper is a BrowserAct Bot template for collecting structured records from public Reddit search results or subreddit listing pages. Configure a subreddit, search query, sort mode, comment collection option, and result count, then run the Bot to return post-level data with visible top comments when requested.

What Does BrowserAct Reddit Posts and Comments Scraper Do?

This template opens public Reddit pages, searches or browses the selected subreddit, scrolls the rendered result feed until enough unique posts are found, and opens post detail pages when comment extraction is enabled.

Key Features

  • Extract public Reddit posts without requiring a Reddit login.
  • Support subreddit-specific search and listing-style workflows.
  • Capture post titles, URLs, subreddit, author, score, comment count, created date, post text, external link, rank, and source page URL.
  • Optionally collect visible top comments from each post detail page.
  • Scroll and deduplicate posts until the requested count is reached.

What Data Can I Extract from Reddit?

Field Description
title Reddit post title.
url Public Reddit post URL.
subreddit Subreddit where the post appears.
author Visible post author, when shown.
score Visible score or vote count.
comment_count Visible number of comments.
created_date Visible post date or relative time.
post_text Post text or snippet available on the page.
external_link Outbound link when the post includes one.
rank Result position returned by the Bot.
source_page_url Search or listing page used for discovery.
top_comments Visible top comments collected from the detail page.

How to Use Reddit Posts and Comments Scraper

  1. Click Run task.
  2. Enter a subreddit and search query.
  3. Choose the sort mode.
  4. Decide whether to include comments.
  5. Set the result count and run the Bot.

Input Parameters

Parameter Required Default Description
subreddit Yes ChatGPT Subreddit to search or browse.
search_query Yes browser automation Keyword phrase used in Reddit search.
sort Yes relevance Reddit search sort mode.
include_comments Yes true Whether to open post pages and collect visible top comments.
count Yes 20 Maximum number of posts to return.

Example Output

{
  "posts": [
    {
      "rank": 1,
      "title": "Example Reddit discussion title",
      "url": "https://www.reddit.com/r/ChatGPT/comments/example/",
      "subreddit": "ChatGPT",
      "author": "example_user",
      "score": "42",
      "comment_count": "18",
      "created_date": "2 days ago",
      "post_text": "Visible post text or snippet",
      "external_link": "",
      "source_page_url": "https://www.reddit.com/r/ChatGPT/search/?q=browser%20automation",
      "top_comments": [
        {
          "comment_author": "commenter",
          "comment_text": "Visible top comment text",
          "comment_score": "8",
          "comment_created_date": "1 day ago"
        }
      ]
    }
  ]
}

How Does it Work?

How Reddit Posts and Comments Scraper runs

BrowserAct uses Reddit's public rendered pages instead of private APIs. It opens the selected subreddit search or listing page, waits for the feed to load, reads visible post cards, and scrolls until the requested count is reached or no more public posts are available.

When include_comments is enabled, BrowserAct opens each collected post URL and reads the visible comment thread area. Some optional fields, such as external_link or author, may be empty when Reddit does not display them on the page.

How to Build a New Scraper Bot with Agent Built

Step 1: Describe the Data You Need

Open BrowserAct and start Agent Built from the Home prompt box or from Create -> Build with Agent. Paste a clear request that includes the website, the records to collect, the filters or search conditions, the fields to return, the result limit, and the inputs you want to reuse later.

Agent Built prompt templates

Step 2: Let BrowserAct Build and Test the Bot

BrowserAct explores the live website, works out the navigation and extraction path, and validates the result. If BrowserAct asks for clarification, reply in the same build conversation with the missing URL, condition, field, example, or expected output.

Agent Built exploration

Step 3: Run the Bot and Review the Result

When the build is complete, run the Bot with the default inputs first. Review the structured records, source URLs, missing fields, and row count before reusing the Bot with new inputs or connecting it to another workflow.

Agent Built run inputs

Agent Built run results

Why Scrape Reddit Posts and Comments?

Reddit discussions help teams monitor community sentiment, discover user language, research product feedback, track topic demand, and gather public conversation signals for analysis.

Who Can Use This Template?

  • Marketers researching public community discussions.
  • Product teams reviewing user problems and feature requests.
  • Analysts tracking keyword trends across subreddits.
  • Content teams sourcing topic ideas from public threads.
  • Automation builders sending Reddit data into databases, sheets, dashboards, or agents.

How Many Results Can You Scrape?

Use count to control how many posts BrowserAct returns. Comment extraction adds detail-page visits, so lower counts are better when you need comments from every post.

Automation and Export

Automation and export flow

BrowserAct returns structured Reddit records first. You can then use the output through API JSON responses, n8n workflows, Make scenarios, Zapier automations, MCP-based agent workflows configured from the Bot's Integrations tab, or manual CSV review.

Need Help?

Contact us at

Discord: Discord Community

E-mail: service@browseract.com

What can we do for youWhat can we do for you

FAQ About the template

Your next scraper starts here.

Reddit Posts and Comments Scraper | Extract Public Reddit Posts, Scores, Threads, and Top Comments