Spaces:
Running
Running
A newer version of the Streamlit SDK is available:
1.49.0
metadata
title: Reddit Scraper
emoji: π
colorFrom: red
colorTo: yellow
sdk: streamlit
sdk_version: 1.32.0
app_file: app.py
pinned: false
license: gpl-3.0
Reddit Scraper
A tool for scraping Reddit data with a user-friendly interface for data collection, analysis, and visualization.
Features
- π Search multiple subreddits simultaneously
- π Filter posts by keywords and various criteria
- π Visualize data with interactive charts
- πΎ Export results to CSV or JSON
- π Track search history
- π Secure credentials management
How to Use
1. Set up Reddit API Credentials
To use this app, you will need Reddit API credentials. You can get these from the Reddit Developer Portal.
- Click "Create App" or "Create Another App"
- Fill in the details (name, description)
- Select "script" as the application type
- Use "http://localhost:8000" as the redirect URI (this doesn't need to be a real endpoint)
- Click "Create app"
- Take note of the client ID (the string under "personal use script") and client secret
Enter these credentials in the app's sidebar or set them up as secrets in the Hugging Face Space settings (if you've duplicated this Space).
2. Searching Reddit
- Enter one or more subreddits to search (one per line)
- Specify keywords to search for (one per line)
- Adjust parameters like post limit, sorting method, etc.
- Click "Run Search" to start scraping
3. Working with Results
- Use the tabs to navigate between different views
- Apply additional filters to the search results
- Visualize the data with built-in charts
- Export results to CSV or JSON for further analysis
Privacy & API Usage
This tool uses the official Reddit API and follows Reddit's API terms of service. Your API credentials are never stored on our servers unless you explicitly save them to your own copy of this Space.
Setup Your Own Copy
If you want to run this app with your own credentials always available:
- Duplicate this Space to your account
- Go to Settings β Repository Secrets
- Add the following secrets:
REDDIT_CLIENT_ID
: Your Reddit API client IDREDDIT_CLIENT_SECRET
: Your Reddit API client secretREDDIT_USER_AGENT
: (Optional) A custom user agent string