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 fire up 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!
main.py
: The boss - runs the whole showreddit_collector.py
: Our Reddit post huntersummarizer.py
: The brains behind our summariescredibility_scorer.py
: Figures out how trustworthy a post isutils.py
: A bunch of helpful tools we use along the way
Feel free to mess around with the code! You can:
- Change which subreddits we look at in
main.py
- Adjust how we pick posts in
reddit_collector.py
- Fiddle with the summary settings in
summarizer.py
- Tweak how we score credibility in
credibility_scorer.py