Skip to content

garritfra/positive_hackernews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

52 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Positive Hacker News RSS Feed

Enjoy a more positive news-reading experience with the Positive Hacker News RSS Feed! ๐ŸŒŸ

A writeup of this project can be found here.

Overview

This RSS feed curates positive news stories from Hacker News.

By using sentiment analysis, it filters out negative stories and presents a selection of content that won't make tech feel hopeless and miserable. This offers an alternative to the standard Hacker News feed for those seeking more positive tech news.

Comparison

Here's an example of the HackerNews feed provided by hnrss.github.io:

Before

And here's the filtered, positive-only feed:

After

How to subscribe

The feed is updated regularly and deployed via GitHub pages. Simply add this link to your RSS reader of choice:

https://garritfra.github.io/positive_hackernews/feed.xml

Setup Instructions

Prerequisites

  • Python 3.11 or above
  • pip for Python package management

Local Setup

  1. Clone the Repository

    • Clone this repository to your local machine using git clone <repository-url>.
  2. Install Dependencies

    • Navigate to the project directory and install the required Python packages:
      pip install -r requirements.txt
  3. Run the Script

    • Execute the main script to generate a new RSS feed:
      python main.py

Contributing

Feel free to contribute to this project! Whether it's by suggesting features, improving the sentiment analysis, or enhancing the RSS feed format, your input is always welcome.

License

MIT