A tool to visualize news articles and their relevance using machine learning
A tool to visualize news articles and their relevance using machine learning. It makes a network of news articles based on the current news or a topic typed in. Connections represent similarities, which are calculated using NLP.
Install the requirements by
sudo make
sudo pip3 install -r requirements.txt
NOTE: Superuser is only required if python is stored in /usr/local
.
p5js
for visualizationbootstrap
for the front endheroku
for back end. NOTE: This is sometimes shut down for other projects.flask
for the API, flask-cors
to make it run well on Heroku.Newsapi
, Newspaper3k
for getting the news and parsing.You can change the host in api.py
and change the address in visualize.js
.
For example, api.py
by default will run on 0.0.0.0
on port 5000
. Changing
var endpoint = "https://news-visual.herokuapp.com/?topic=" + topic;
to
var endpoint = "http://0.0.0.0:5000/?topic=" + topic;
accesses the local api.
NOTE: Make sure to change to http://
instead of https://