https://viditjain12-toxicityanalyzer-app-mer3k6.streamlit.app/
A tool to analyze the toxicity levels of Reddit communities and help users make informed decisions about joining them.
- Fetch and analyze posts and comments from any Reddit subreddit
- Calculate toxicity scores using advanced NLP models
- Generate visualizations of toxicity trends
- Provide detailed insights about community behavior
- User-friendly web interface
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile with your Reddit API credentials:REDDIT_CLIENT_ID=your_client_id REDDIT_CLIENT_SECRET=your_client_secret REDDIT_USER_AGENT=your_user_agent
- Run the Streamlit app:
streamlit run app.py
- Enter a subreddit name in the interface
- View toxicity analysis and insights
app.py: Main Streamlit applicationreddit_scraper.py: Reddit data collection moduletoxicity_analyzer.py: NLP-based toxicity analysisutils.py: Helper functionsmodels/: Pre-trained models and model-related code