The New York Times Sentiment Analysis

Last Updated: {lastUpdate ? lastUpdate.toLocaleString() : ""}

This project is an experiment running sentiment analysis on the current New York Times homepage headlines RSS. It also provides a sorting button to toggle between {positiveOrder ? "good and bad news" : "bad and good news"} first😛 . It's built with a custom SvelveKit front-end , served by a Flask application and using transformers pipeline for the sentiment analysis.

You can try other news feeds ; however the NYTimes feed comes with more information than the other feeds, such as the thumbnail image, author, and more.

{#await fecthPredictions(selectedFeedUrl)}
Loading feed and running sentiment analysis on headlines...
{:then data} {:catch error}

An error occurred!

{/await}