This project is a Python script that utilizes the Reddit API (via the PRAW library) to retrieve a user's submission history and generates a summarized text using the BART (Bidirectional and AutoRegressive Transformers) model. The script saves the user data to a text file and appends the summarized text to another file. It provides a convenient way to analyze and summarize a user's Reddit activity.
To run this project, follow these steps:
- Clone the repository to your local machine using the following command:
git clone https://github.com/RaymonDev/RUSGen
- Create a virtual environment (optional but recommended) to keep the project dependencies isolated:
python -m venv myenv
- Activate the virtual environment:
- For Windows:
myenv\Scripts\activate
- For Unix or Linux:
source myenv/bin/activate
- Install the required dependencies using pip:
pip install -r requirements.txt
- Edit the script and replace the Reddit API credentials (client_id, client_secret, user_agent, username, and password) with your own credentials. Ensure you have the necessary permissions to access the Reddit API.
- Save the changes and execute the script:
python main.py
Contributions are always welcome!