Reddit AI Commenter Pro is a Python application that scrapes Reddit posts, generates AI comments, and allows for review and posting of these comments.
reddit_scraper_gui.py
: Main application file with the GUIgui_components.py
: GUI-related classes and dialogsscraper.py
: Main scraping functionalityutils.py
: Utility functions and constantsstyles.py
: Styling and visual aspects
Note: If you see a reddit_scraper.py
file in your directory, it's from the old version and can be safely removed.
-
Install Python
- Download and install Python 3.8 or later from python.org
- Ensure you check "Add Python to PATH" during installation
-
Set up a virtual environment (recommended)
- Open a terminal or command prompt
- Navigate to the project directory
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies
- With the virtual environment activated, run:
pip install -r requirements.txt
- Install spaCy language model:
python -m spacy download en_core_web_md
- With the virtual environment activated, run:
-
Configure settings
- Open
reddit_scraper_gui.py
and update any default settings if needed
- Open
- Ensure your virtual environment is activated
- Run the following command:
python reddit_scraper_gui.py
- Enter your Reddit username and password
- Add subreddits you want to scrape
- Configure scraping settings (max articles, comments, etc.)
- Click "Start Scraping, Generating and Reviewing Comments"
- Review and select AI-generated comments
- The application will post selected comments to Reddit
- Make sure you comply with Reddit's terms of service and API usage guidelines
- Be cautious when using automated posting features to avoid potential account restrictions
- If you encounter issues with TensorFlow, you can disable neural word vectors or increase the similarity threshold in the advanced settings
- For any crashes or errors, check the log file generated in the application directory
To update the requirements file with your current environment packages:
pip freeze > requirements.txt
Remember to deactivate your virtual environment when you're done:
deactivate
[Include your license information here]