Giter Site home page Giter Site logo

news-bias-analyzer's Introduction

News Bias Analyzer

Our CSCE 470 Project

Features

Given a list of preselected relevent politicians, it analyzes how biased news outlets are towards those individuals.

How to Use

To use this project, follow these steps:

  1. clone the application with git clone https://github.tamu.edu/guillermo-lopez6988/NewsBiasAnalyzer.git
  2. Install Django ($ sudo pip install django)
  3. Install whitenoise ($ sudo pip install whitenoise)
  4. Install dj-database-url ($ sudo pip install dj-database-url)
  5. Install rest framework ($ sudo pip install djangorestframework)
  6. Install newspaper3k ($ sudo pip3 install newspaper3k)

running locally

In case you want to run your Django application from the terminal just run: Run syncdb command to sync models to database and create Django’s default superuser and auth system

$ python manage.py migrate
$ python manage.py runserver $IP:$PORT

In cloud 9: To change the version of python from 2 to 3 (needed for newspaper3k)

$ sudo mv /usr/bin/python /usr/bin/python2
$ sudo ln -s /usr/bin/python3 /usr/bin/python

To verify python version was succesfully changed $ python --version

Install django again to make it compatible with python 3 $ sudo pip3 install django

The projected can be found at:

https://new-bias-analyzer.herokuapp.com/

Deployment to Heroku

$ git init
$ git add -A
$ git commit -m "Initial commit"

$ heroku create
$ git push heroku master

$ heroku run python manage.py migrate

add nlp to heroku 
nltk.txt tells heroku which corpora to download.

License: MIT

Further Reading

Code Retrieved From Internet:

news-bias-analyzer's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.