Skip to content

stevenrouk/pressbot

Repository files navigation

pressbot

An app to analyze relationships among text articles (news articles, blogs, etc.) on the web.

Heroku Application: pressbotcity

(Note: The Heroku app doesn't have the sentiment analysis capabilities yet because of a package issue.)


To install and run locally for Mac / Linux

Install Anaconda for Python 3.x.

Clone the directory to your computer.

git clone https://github.com/stevenrouk/pressbot.git

Create and activate a conda virtual environment named 'pressbot-env' from the environment.yml file.

cd pressbot/
conda env create
source activate pressbot-env

Create settings_secret.py, and add a secret key for Django.

echo "SECRET_KEY = 'my-secret-key'" > pressbot/settings_secret.py

Make database migrations, then create the database.

python manage.py makemigrations
python manage.py migrate

Collect static files.

python manage.py collectstatic

Create an admin user.

python manage.py createsuperuser

Run the application server! In order to add text articles, you'll need to login as admin first by navigating to http://127.0.0.1:8000/admin, then go back to the index page and click the "Add Press Release" button.

python manage.py runserver

Or, to explore the Jupyter notebooks under the 'research' folder:

jupyter notebook

About

Mercy For Animals press analytics project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published