Back to articles
How to Scrape Reddit: Posts, Comments, and Subreddit Data in 2026

How to Scrape Reddit: Posts, Comments, and Subreddit Data in 2026

via Dev.to Tutorialagenthustler

How to Scrape Reddit: Posts, Comments, and Subreddit Data in 2026 Reddit is one of the richest sources of user-generated content on the web. With the API changes of 2023-2024, scraping Reddit requires updated approaches. Here is how to collect Reddit data effectively in 2026. The Landscape in 2026 Reddit's official API now has strict rate limits and pricing for commercial use. However, for research and personal projects, there are still viable approaches: Official API (free tier): 100 requests/minute, good for small projects Old Reddit HTML : Still accessible, lighter pages Public JSON endpoints : Append .json to most Reddit URLs Setup pip install requests pandas praw Method 1: Reddit JSON Endpoints The simplest approach — no API key needed: import requests import pandas as pd import time def scrape_subreddit ( subreddit , limit = 100 ): posts = [] after = None headers = { " User-Agent " : " DataCollector/1.0 " } while len ( posts ) < limit : url = f " https://old.reddit.com/r/ { subre

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles