Reddit Bot is a Python-based bot that allows you to scrape information from Reddit using the Reddit API. This bot can be used to gather data, perform sentiment analysis, or automate various tasks on the platform.
- Scrape popular subreddits.
- Scrape subreddits by keyword.
- Analysis on a subreddit.
- Scrape posts and comments from any subreddit. (next update)
- Save scraped data to an Excel file. (Support for CSV and JSON coming soon)
- Easy-to-use and well-documented code.
- Support for Python 3.9 or higher.
- Python 3.9 or higher
- PRAW (Python Reddit API Wrapper)
- Openpyxl
- Rich
Clone the repository (bash) :
git clone https://github.com/mandatedisrael/Reddit-scrapper.git
cd reddit-scraper
Install the required dependencies:
pip3 install -r requirements.txt
Before using the bot, you need to set up a Reddit script app to obtain API credentials. Follow the steps below:
- Go to https://www.reddit.com/prefs/apps
- Scroll down to the "Developed Applications" section and click "Create App or Another App."
- Select "Script" as the app type.
- After creating the app, you'll get the
client_id
andclient_secret
. - These credentials will be used to authenticate the bot.
To run the Reddit bot scraper, simply execute the main script:
python3 main.py
Contributions are welcome! If you encounter any issues or have suggestions, feel free to open an issue or submit a pull request, Love y'all😎.