An open API service indexing awesome lists of open source software.

https://github.com/anandukrishnaaa/streamlit-news-app

A streamlit app that scrapes Google News RSS feed for news, summarizes it and displays as per choice - by top trending, category or as per a search term.
https://github.com/anandukrishnaaa/streamlit-news-app

news nlp python sentiment-analysis streamlit

Last synced: about 2 months ago
JSON representation

A streamlit app that scrapes Google News RSS feed for news, summarizes it and displays as per choice - by top trending, category or as per a search term.

Awesome Lists containing this project

README

          

# streamlit News App 📰
A streamlit app that scrapes Google News RSS feed for news, summarizes it and displays as per choice - by top trending, category or as per a search term. Also has a bit of NLP magic working behind the scenes - to summarize long articles into a crisp little news byte.

Check out the [project demo here](https://anxduos-streamlit-news-app-streamlit-news-app-yqjzh8.streamlit.app/), hosted on streamlit cloud.

# Dependencies
### Required dependencies
* streamlit (*web interface*)
* nltk (*natural language toolkit for analysing data*)
* newspaper3k (*analysing news articles*)
* bs4 (*for webscraping*)

### Optional dependencies
* black (*for formatting*)

### nltk packages required
* punkt (*for parsing & natural language processing*)
* vader_lexicon (*for sentiment analysis*)

# Steps
1. Create a virtual environment ```virtualenv .streamlit-news-app``` and activate it.
2. ```pip install -r requirements.txt``` to install required libraries.
3. Run the app ```streamlit run streamlit-news-app.py ```

# Screenshots
### Landing page
![Landing Page](./screenshots/landing-page.png "Landing Page")
### Trending news page
![Trending #1](./screenshots/trending-news-img-1.png "Trending #1")
![Trending #2](./screenshots/trending-news-img-2.png "Trending #2")
### Category page
![Category #1](./screenshots/category-news-tech-img-1.png "Category #1")
![Category #2](./screenshots/category-news-tech-img-2.png "Category #2")
### Search page
![Search #1](./screenshots/search-news-img-1.png "Search #1")
![Search #2](./screenshots/search-news-img-2.png "Search #2")