Hey there! Welcome to NewsGuardian, your smart companion for navigating the wild world of Reddit news. This tool doesn't just find news - it breaks it down, summarizes it, and helps you figure out what's trustworthy.
Ever felt lost in the sea of Reddit news, unsure what to believe? NewsGuardian's got your back! Here's what it does:
- Hunts down fresh, hot news from top Reddit communities
- Creates quick, smart summaries using cutting-edge AI
- Gives each story a "trust score" to help you spot the real deal
- Breaks down the writing style and how the content is structured
- Checks if the news is recent and relevant
- Looks at how reliable the poster and the community are
- Labels posts as "Likely True", "Potentially Misleading", or "Needs a Fact-Check"
-
Clone this repo to your machine
-
Install the stuff we need: pip install -r requirements.txt
-
Set up your Reddit API creds (check out Reddit's dev site for this)
-
Update the
client_id
andclient_secret
inmain.py
with your info
Just run the main script: python main.py
It'll ask how many top news items you want to see from each subreddit. Type in a number and let it generate!
Feel free to mess around with the code! You can:
- Change which subreddits to look at in
main.py
- Adjust how to pick posts in
reddit_collector.py
- Change the summary settings in
summarizer.py
- Tweak how I score credibility in
credibility_scorer.py