Reddit Scraper

Fetch top Reddit subreddit posts and output JSON with title, author, score, and URL.

2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/ToniIAPro73/Anclora-Agents-Skills --skill reddit-scraper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Reddit Scraper
Source: https://github.com/ToniIAPro73/Anclora-Agents-Skills/tree/main/skills/scraper_reddit
Command: npx skills add https://github.com/ToniIAPro73/Anclora-Agents-Skills --skill reddit-scraper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill eliminates manual browsing by programmatically fetching the top posts from a specified subreddit and presenting them in a structured format, saving time and enabling quick insights.

Core Features & Use Cases

  • Top-post retrieval: Fetch the top 5 posts from a subreddit for the current day.
  • Structured output: Return results as JSON with fields for title, author, score, and URL, ready for further processing.
  • Use Case: Content creators and analysts can quickly surface trending discussions to inform posts, reports, or research.

Quick Start

Run the script with a subreddit name to fetch the top posts, for example: python scripts/reddit_scraper.py <subreddit-name>

Frequently Asked Questions about Reddit Scraper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape top posts from a Reddit subreddit?

To scrape top posts from a Reddit subreddit, run the Python script with the subreddit name as an argument. The script fetches the top 5 daily posts and returns structured JSON data containing titles, authors, scores, and URLs for quick trend spotting.

What is the best way to extract JSON data from Reddit subreddits?

Extracting JSON data from Reddit subreddits is done using Python standard libraries to request and parse the Reddit JSON endpoint. This approach retrieves the top 5 posts for the current day and outputs structured fields like title, author, score, and URL.

Can I use Python to fetch Reddit top posts for content planning?

Yes, you can use Python to fetch Reddit top posts for content planning. The script retrieves the top 5 daily posts from a specified subreddit and structures the data into JSON format, enabling quick insights for content creators and analysts.

Do I need external dependencies to scrape Reddit data with Python?

You do not need external dependencies to scrape Reddit data with this approach. The script relies entirely on Python's standard libraries to request JSON data from Reddit, parse it, and present a simple table-like structure for immediate use.

Does this Reddit scraper support fetching historical top posts?

This Reddit scraper does not support fetching historical top posts. It specifically retrieves the top 5 posts from a specified subreddit for the current day, limiting its use to real-time trend spotting and daily competitive research rather than historical analysis.