Our CSCE 470 Project
Given a list of preselected relevent politicians, it analyzes how biased news outlets are towards those individuals.
To use this project, follow these steps:
- clone the application with
git clone https://github.tamu.edu/guillermo-lopez6988/NewsBiasAnalyzer.git
- Install Django (
$ sudo pip install django
) - Install whitenoise (
$ sudo pip install whitenoise
) - Install dj-database-url (
$ sudo pip install dj-database-url
) - Install rest framework (
$ sudo pip install djangorestframework
) - Install newspaper3k (
$ sudo pip3 install newspaper3k
)
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
https://new-bias-analyzer.herokuapp.com/
$ 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.