Reddit Comments Scraper

Reddit Comments Scraper

by mysteriousshadow

Easily extract Reddit comments with customizable depth. Retrieve top-level comments, direct replies, or entire thread hierarchies in flat or nested fo...

258 runs
78 users
Try This Actor

Opens on Apify.com

About Reddit Comments Scraper

Easily extract Reddit comments with customizable depth. Retrieve top-level comments, direct replies, or entire thread hierarchies in flat or nested formats for seamless analysis and research.

What does this actor do?

Reddit Comments Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Reddit Comments Scraper Reddit Comments Scraper is a powerful and flexible tool designed to extract comments from any Reddit post effortlessly. Whether you need a flat list of comments or the full nested comment structure, this scraper provides both formats for your convenience. Perfect for researchers, analysts, and developers working with Reddit data. Update Jan. 24, 2025: Fixed a bug that would occur when encountering a deleted commment. ### Key Features - Customizable Depth Levels: Scrape only top-level comments, direct replies, or dive deeper to capture the full thread hierarchy. Example: - Depth []: Extracts all comments. - Depth [0]: Extracts only top-level comments. - Depth [0,1]: Captures top-level comments and their direct replies. - Two Output Formats: - Flat: A simple list of all comments. - Nested: Reflects Reddit's natural comment-reply structure for easy visualization. - Ease of Use: Quickly and efficiently scrape comments from any Reddit post with minimal setup. --- ## Why Use This Scraper? - Save Time: Avoid manually navigating Reddit threads. - Customizable: Extract only the data you need. - SEO & Marketing Research: Analyze audience sentiments or popular topics. - Data Analysis: Perform sentiment analysis, topic modeling, or build datasets. --- ## How It Works 1. Input: Provide the URL of the Reddit post. 2. Configure Depth: Specify the comment depth you want to scrape. 3. Run the Scraper: Fetch comments in the desired format. 4. Output: Access your data in flat and nested JSON formats. --- ## Example Use Cases - Market Research: Understand audience opinions about a product or topic. - Content Analysis: Identify popular phrases or themes in Reddit discussions. - Data for AI Models: Use Reddit conversations to train NLP models. --- ## Output Formats 1. Flat: json [ "Comment 1", "Reply 1.1", "Reply 1.1.1", "Reply 1.2", "Comment 2", ] 2. Nested: { "Comment 1": { "Reply 1.1": { "Reply 1.1.1": {} }, "Reply 1.2": {} }, "Comment 2": {} } ## Example output: Given URL: https://www.reddit.com/r/ProgrammerHumor/comments/1gx3tj4/theupgrade/ [{ "flat_comments": [ { "content": "Your submission was removed for the following reason:\nRule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.\nIf you disagree with this removal, you can appeal by sending us a modmail.", "commentid": "t1_lyg8d4m", "depth": "0", "author": "ProgrammerHumor-ModTeam", "score": "1", "parentid": null }, { "content": "As a compsci student procrastinating a c# assignment im now conflected", "commentid": "t1_lye6tmc", "depth": "0", "author": "CrossFire011", "score": "398", "parentid": null }, { "content": "C# is the dream. So much good tooling, the BEST ide(imo) and .net core is a joy to work with.", "commentid": "t1_lye9y5v", "depth": "1", "author": "RoutineWolverine1745", "score": "353", "parentid": "t1_lye6tmc" }, { "content": "The dotnet cli and omnisharp are great tools (haven't tried roslyn), but unfortunately rzls (the language server for blazor) doesn't work outside of Visual Studio or VSCode. That's the only thing lacking for me to say it has great tooling overall.", "commentid": "t1_lyebnvn", "depth": "2", "author": "DestopLine555", "score": "70", "parentid": "t1_lye9y5v" }, { "content": "Doesn't work in VS Code either.", "commentid": "t1_lyenm41", "depth": "3", "author": "sharkydad", "score": "31", "parentid": "t1_lyebnvn" }, { "content": "Which IDE are you talking about?", "commentid": "t1_lyebynz", "depth": "2", "author": "Fadamaka", "score": "27", "parentid": "t1_lye9y5v" }, { "content": "Notepad++", "commentid": "t1_lyeec48", "depth": "3", "author": "cosmic_cosmosis", "score": "126", "parentid": "t1_lyebynz" }, { "content": "Visual Studio id guess.", "commentid": "t1_lyeek4p", "depth": "3", "author": "ToastedHedgehog", "score": "30", "parentid": "t1_lyebynz" }, { "content": "I think Rider is slept on, way better than VS", "commentid": "t1_lyf2y4s", "depth": "3", "author": "Singularity42", "score": "3", "parentid": "t1_lyebynz" }, { "content": "Visual Studio ain't bad. Yeah it's slow and sometimes buggy but it's crazy intuitive and easy to use", "commentid": "t1_lyejlf9", "depth": "3", "author": "OhItsJustJosh", "score": "8", "parentid": "t1_lyebynz" } ], "nested_comments": [ { "content": "Your submission was removed for the following reason:\nRule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.\nIf you disagree with this removal, you can appeal by sending us a modmail.", "commentid": "t1_lyg8d4m", "depth": "0", "author": "ProgrammerHumor-ModTeam", "score": "1", "parentid": null, "replies": [] }, { "content": "As a compsci student procrastinating a c# assignment im now conflected", "commentid": "t1_lye6tmc", "depth": "0", "author": "CrossFire011", "score": "398", "parentid": null, "replies": [ { "content": "C# is the dream. So much good tooling, the BEST ide(imo) and .net core is a joy to work with.", "commentid": "t1_lye9y5v", "depth": "1", "author": "RoutineWolverine1745", "score": "353", "parentid": "t1_lye6tmc", "replies": [ { "content": "The dotnet cli and omnisharp are great tools (haven't tried roslyn), but unfortunately rzls (the language server for blazor) doesn't work outside of Visual Studio or VSCode. That's the only thing lacking for me to say it has great tooling overall.", "commentid": "t1_lyebnvn", "depth": "2", "author": "DestopLine555", "score": "70", "parentid": "t1_lye9y5v", "replies": [ { "content": "Doesn't work in VS Code either.", "commentid": "t1_lyenm41", "depth": "3", "author": "sharkydad", "score": "31", "parentid": "t1_lyebnvn", "replies": [] } ] }, { "content": "Which IDE are you talking about?", "commentid": "t1_lyebynz", "depth": "2", "author": "Fadamaka", "score": "27", "parentid": "t1_lye9y5v", "replies": [ { "content": "Notepad++", "commentid": "t1_lyeec48", "depth": "3", "author": "cosmic_cosmosis", "score": "126", "parentid": "t1_lyebynz", "replies": [] }, { "content": "Visual Studio id guess.", "commentid": "t1_lyeek4p", "depth": "3", "author": "ToastedHedgehog", "score": "30", "parentid": "t1_lyebynz", "replies": [] }, { "content": "I think Rider is slept on, way better than VS", "commentid": "t1_lyf2y4s", "depth": "3", "author": "Singularity42", "score": "3", "parentid": "t1_lyebynz", "replies": [] }, { "content": "Visual Studio ain't bad. Yeah it's slow and sometimes buggy but it's crazy intuitive and easy to use", "commentid": "t1_lyejlf9", "depth": "3", "author": "OhItsJustJosh", "score": "8", "parentid": "t1_lyebynz", "replies": [] } ] } ] } ] } ] }]

Categories

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Reddit Comments Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
mysteriousshadow
Pricing
Paid
Total Runs
258
Active Users
78
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support